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

# Packages

# Functions

AddFileToExistingPackage adds a file to an existing package.
AddFileToPackageVersionInternal adds a file to the package This method skips quota checks and should only be used for system-managed packages.
CheckCountQuotaExceeded checks if the owner has more than the allowed packages The check is skipped if the doer is an admin.
CheckSizeQuotaExceeded checks if the upload size is bigger than the allowed size The check is skipped if the doer is an admin.
CreatePackageAndAddFile creates a package with a file.
CreatePackageOrAddFileToExisting creates a package with a file or adds the file if the package exists already.
DeletePackageFile deletes the package file and its properties.
DeletePackageVersionAndReferences deletes the package version and its properties and files.
GetFileStreamByPackageNameAndVersion returns the content of the specific package file.
GetFileStreamByPackageVersion returns the content of the specific package file.
GetOrCreateInternalPackageVersion gets or creates an internal package Some package types need such internal packages for housekeeping.
GetPackageBlobStream returns the content of the specific package blob If the storage supports direct serving and it's enabled, only the direct serving url is returned.
GetPackageFileStream returns the content of the specific package file.
NewPackageBlob creates a package blob instance.
RemoveAllPackages for User.
RemovePackageFileAndVersionIfUnreferenced deletes the package file and the version if there are no referenced files afterwards.
RemovePackageVersion deletes the package version and all associated files.
RemovePackageVersionByNameAndVersion deletes a package version and all associated files.

# Variables

# Structs

PackageCreationInfo describes a package to create.
PackageFileCreationInfo describes a package file to create.
PackageFileInfo describes a package file.
PackageInfo describes a package.