docker

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContextFromWorkingDir

func CreateContextFromWorkingDir(workDir, dockerfile string, w io.Writer, buildArgs []string) error

CreateContextFromWorkingDir creates a build context of the provided directory and writes it to the Writer

func GetCredentialsAsConfigMap added in v1.0.0

func GetCredentialsAsConfigMap(credentials []byte) *v1.ConfigMap

GetCredentialsAsConfigMap creates a new v1.ConfigMap with the provided credentials

func GetCredentialsFromConfig added in v1.0.0

func GetCredentialsFromConfig() ([]byte, error)

GetCredentialsFromConfig reads the docker config located at ~/.docker/config.json

func GetCredentialsFromFlags added in v1.0.0

func GetCredentialsFromFlags(username, password, registry string) ([]byte, error)

GetCredentialsFromFlags creates a dockerconfig "auths" object containing the provided credentials

func GetFilePaths

func GetFilePaths(workDir, dockerfile string, buildArgs []string) ([]string, error)

GetFilePaths returns all paths required to build the docker image

func GuessRegistryFromTag added in v1.0.0

func GuessRegistryFromTag(imageTag string) string

GuessRegistryFromTag guesses the container registry based on the provided image tag. Defaults to the index.docker.io registry

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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