Back to godoc.org

Package helpers

v0.0.0-...-29f63df
Latest Go to latest

The highest tagged major version is .

Published: Sep 14, 2020 | License: Apache-2.0 | Module: code.cloudfoundry.org/dockerapplifecycle

Index

Constants

const (
	DockerHubHostname    = "registry-1.docker.io"
	DockerHubLoginServer = "https://index.docker.io/v1/"
	MAX_DOCKER_RETRIES   = 4
)

func FetchMetadata

func FetchMetadata(registryURL, repoName, tag string, ctx *types.SystemContext, stderr io.Writer) (*v1.ImageConfig, error)

func ParseDockerRef

func ParseDockerRef(dockerRef string) (string, string, string)

For standard docker image references expressed as a protocol-less string returns RegistryURL, repoName, tag|digest

func ParseRepositoryTag

func ParseRepositoryTag(repos string) (string, string)

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
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier