Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultPackageType = "generic"
Variables ¶
View Source
var PackageTypes = []string{
"cargo",
"composer",
"conan",
"debian",
"generic",
"golang",
"helm",
"maven",
"ml_model",
"npm",
"nuget",
"pypi",
"rpm",
"rubygems",
"terraform_module",
}
PackageTypes mirrors the package_type enum in GitLab's Packages::Package model.
Functions ¶
func GetPackageByName ¶
func GetPackageByName(ctx context.Context, client *gitlab.Client, packageName, packageType, packageVersion, repoName string) (*gitlab.Package, error)
GetPackageByName returns the one package matching name, type and version. The server filters by name as a substring, so matches are re-checked exactly. It errors when several packages match rather than picking one to delete.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.