helpers

package
v0.0.0-...-189a028 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL