Help us shape the future of Go! Take the 2026 Go Developer Survey

helpers

package
v1.124.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL