Back to

Package helpers

Latest Go to latest

The highest tagged major version is .

Published: Sep 14, 2020 | License: Apache-2.0 | Module:



const (
	DockerHubHostname    = ""
	DockerHubLoginServer = ""

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