repoutils

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: MIT Imports: 7 Imported by: 19

Documentation

Index

Constants

View Source
const (
	// DefaultDockerRegistry is the default docker registry address.
	DefaultDockerRegistry = "https://registry-1.docker.io"
)

Variables

This section is empty.

Functions

func GetAuthConfig

func GetAuthConfig(username, password, registry string) (types.AuthConfig, error)

GetAuthConfig returns the docker registry AuthConfig. Optionally takes in the authentication values, otherwise pulls them from the docker config file.

func GetRepoAndRef

func GetRepoAndRef(image string) (repo, ref string, err error)

GetRepoAndRef parses the repo name and reference.

Types

This section is empty.

Jump to

Keyboard shortcuts

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