Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDockerRef ¶
func ParseDockerRef(rawRef string) (distributionref.Named, error)
ParseDockerRef parses the passed reference with assuming it's a docker reference.
func ParseIPFSRefWithScheme ¶
ParseIPFSRefWithScheme parses the passed reference with assuming it's an IPFS reference with scheme prefix.
func SuggestContainerName ¶
SuggestContainerName generates a container name from name. The result MUST NOT be parsed.
Types ¶
type Reference ¶
type Reference interface { // String returns the full reference which can be understood by containerd. String() string }
Reference is a reference to an image.
func ParseAny ¶
ParseAny parses the passed reference with allowing it to be non-docker reference. If the ref has IPFS scheme or can be parsed as CID, it's parsed as an IPFS reference. Otherwise it's parsed as a docker reference.
func ParseAnyReference ¶
ParseAnyReference parses the passed reference as IPFS, CID, or a classic reference. Unlike ParseAny, it is not limited to the DockerRef limitations (being either tagged or digested) and should be used instead.