package
1.24.0-dev
Repository: https://github.com/go-gitea/gitea.git
Documentation: pkg.go.dev

# Packages

# Functions

CalculateFileSize sums up all blob sizes matching the search options.
CountVersions counts all versions of packages matching the search options.
CreateBlobUpload inserts a blob upload.
DeleteAllProperties deletes all properties of a ref.
DeleteBlobByID deletes a blob by id.
DeleteBlobUploadByID deletes the blob upload.
DeleteFileByID deletes a file.
DeletePackageByID deletes a package by id.
DeletePropertyByID deletes a property.
DeletePropertyByName deletes properties by name.
DeleteVersionByID deletes a version by id.
ExistPackageBlobWithSHA returns if a package blob exists with the provided sha.
ExistVersion checks if a version matching the search options exist.
FindExpiredBlobUploads gets all expired blob uploads.
FindExpiredUnreferencedBlobs gets all blobs without associated files older than the specific duration.
FindUnreferencedPackages gets all packages without associated versions.
GetBlobByID gets a blob by id.
GetBlobUploadByID gets a blob upload by id.
GetDistinctPropertyValues returns all distinct property values for a given type.
GetFileForVersionByID gets a file of a version by id.
GetFileForVersionByName gets a file of a version by name.
GetFilesByVersionID gets all files of a version.
GetInternalVersionByNameAndVersion gets a version by name and version number.
GetOrInsertBlob inserts a blob.
GetOrInsertVersion inserts a version.
GetPackageByID gets a package by id.
GetPackageByName gets a package by name.
GetPackageDescriptor gets the package description for a version.
GetPackageDescriptors gets the package descriptions for the versions.
GetPackageFileDescriptor gets a package file descriptor for a package file.
GetPackageFileDescriptors gets the package file descriptors for the package files.
GetPackagesByType gets all packages of a specific type.
GetProperties gets all properties.
GetPropertiesByName gets all properties with a specific name.
GetTotalBlobSize returns the total blobs size in bytes.
GetTotalUnreferencedBlobSize returns the total size of all unreferenced blobs in bytes.
GetVersionByID gets a version by id.
GetVersionByNameAndVersion gets a version by name and version number.
GetVersionsByPackageName gets all versions of a specific package.
GetVersionsByPackageType gets all versions of a specific type.
HasFiles tests if there are files of packages matching the search options.
HasOwnerPackages tests if a user/org has accessible packages.
HasRepositoryPackages tests if a repository has packages.
HasVersionFileReferences checks if there are associated files.
IncrementDownloadCounter increments the download counter of a version.
InsertProperty creates a property.
IsBlobAccessibleForUser tests if the user has access to the blob.
SearchFiles gets all files of packages matching the search options.
SearchLatestVersions gets the latest version of every package matching the search options.
SearchVersions gets all versions of packages matching the search options.
SetRepositoryLink sets the linked repository.
TryInsertFile inserts a file.
TryInsertPackage inserts a package.
UnlinkRepositoryFromAllPackages unlinks every package from the repository.
UpdateBlobUpload updates the blob upload.
UpdateProperty updates a property.
UpdateVersion updates a version.

# Constants

EmptyFileKey is a named constant for an empty file key.
1.
2.
0.
List of supported packages.
List of supported packages.
List of supported packages.
List of supported packages.
List of supported packages.
List of supported packages.
List of supported packages.
List of supported packages.
List of supported packages.
List of supported packages.
List of supported packages.
List of supported packages.
List of supported packages.
List of supported packages.
List of supported packages.
List of supported packages.
List of supported packages.
List of supported packages.
List of supported packages.
List of supported packages.
List of supported packages.
List of supported packages.

# Variables

ErrDuplicatePackage indicates a duplicated package error.
ErrDuplicatePackageFile indicates a duplicated package file error.
ErrDuplicatePackageVersion indicates a duplicated package version error.
ErrPackageBlobNotExist indicates a package blob not exist error.
ErrPackageBlobUploadNotExist indicates a package blob upload not exist error.
ErrPackageFileNotExist indicates a package file not exist error.
ErrPackageNotExist indicates a package not exist error.

# Structs

Package represents a package.
PackageBlob represents a package blob.
PackageBlobUpload represents a package blob upload.
PackageCleanupRule represents a rule which describes when to clean up package versions.
PackageDescriptor describes a package.
PackageFile represents a package file.
PackageFileDescriptor describes a package file.
PackageFileSearchOptions are options for SearchXXX methods.
PackageProperty represents a property of a package, version or file.
PackageSearchOptions are options for SearchXXX methods All fields optional and are not used if they have their default value (nil, "", 0).
PackageVersion represents a package version.
SearchValue describes a value to search If ExactMatch is true, the field must match the value otherwise a LIKE search is performed.

# Type aliases

PackagePropertyList is a list of package properties.
Type of a package.