Registry / utility / distribution-reference

distribution-reference

JSON →
library0.6.0gogounverified

Package reference provides a general type to represent any way of referencing images within the registry.

go get github.com/distribution/reference
INSTALL
IMPORT
SIG · DISTRIBUTION-REFER
D
distribution-reference
utilitygov0.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

reference
github.com/distribution/reference

Parse a Docker image reference and print it.

package main import ( "fmt" "github.com/distribution/reference" ) func main() { named, err := reference.Parse("ubuntu:latest") if err != nil { fmt.Println(err) return } fmt.Println(named.String()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.6.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
distribution-reference — go get distribution-reference · libregistry