Documentation ¶
Index ¶
- Constants
- func FetchMetadata(registryURL, repoName, tag string, ctx *types.SystemContext, stderr io.Writer) (*v1.ImageConfig, error)
- func ParseDockerRef(dockerRef string) (string, string, string)
- func ParseRepositoryTag(repos string) (string, string)
- func SaveMetadata(filename string, metadata *protocol.DockerImageMetadata) error
Constants ¶
View Source
const ( DockerHubHostname = "registry-1.docker.io" DockerHubLoginServer = "https://index.docker.io/v1/" MAX_DOCKER_RETRIES = 4 )
Variables ¶
This section is empty.
Functions ¶
func FetchMetadata ¶
func FetchMetadata(registryURL, repoName, tag string, ctx *types.SystemContext, stderr io.Writer) (*v1.ImageConfig, error)
func ParseDockerRef ¶
For standard docker image references expressed as a protocol-less string returns RegistryURL, repoName, tag|digest
func ParseRepositoryTag ¶
stolen from docker/docker Get a repos name and returns the right reposName + tag The tag can be confusing because of a port in a repository name.
Ex: localhost.localdomain:5000/samalba/hipache:latest
func SaveMetadata ¶
func SaveMetadata(filename string, metadata *protocol.DockerImageMetadata) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.