Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseDomainName ¶
ParseDomainName parses a docker image reference into its domain component, if any, and everything after the domain. An empty string is returned if there is no domain component. This function will first validate that image is a valid reference, returning an error if it is not.
Examples inputs and results for the domain component:
"busybox" -> domain is "" "foo/busybox" -> domain is "" "localhost/foo/busybox" -> domain is "localhost" "localhost:5000/foo/busybox" -> domain is "localhost:5000" "gcr.io/busybox" -> domain is "gcr.io" "gcr.io/foo/busybox" -> domain is "gcr.io" "docker.io/busybox" -> domain is "docker.io" "docker.io/library/busybox" -> domain is "docker.io" "library/busybox:v1" -> domain is ""
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.