Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Library is the keyword for a library ref Library = "library" // Shub is the keyword for a shub ref Shub = "shub" // HTTP is the keyword for http ref HTTP = "http" // HTTPS is the keyword for https ref HTTPS = "https" )
Variables ¶
This section is empty.
Functions ¶
func GetName ¶
GetName turns a transport:ref URI into a name containing the top-level identifier of the image. For example, docker://godlovedc/lolcow returns lolcow
Returns "" when not in transport:ref format
func Split ¶
Split splits a URI into it's components which can be used directly through containers/image
This can be tricky if there is no type but a file name contains a colon.
Examples:
docker://ubuntu -> docker, //ubuntu docker://ubuntu:18.04 -> docker, //ubuntu:18.04 oci-archive:path/to/archive -> oci-archive, path/to/archive ubuntu -> "", ubuntu ubuntu:18.04.img -> "", ubuntu:18.04.img
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.