Documentation ¶
Index ¶
- func CreateContextFromWorkingDir(workDir, dockerfile string, w io.Writer, buildArgs []string) error
- func GetCredentialsAsConfigMap(credentials []byte) *v1.ConfigMap
- func GetCredentialsFromConfig() ([]byte, error)
- func GetCredentialsFromFlags(username, password, registry string) ([]byte, error)
- func GetFilePaths(workDir, dockerfile string, buildArgs []string) ([]string, error)
- func GuessRegistryFromTag(imageTag string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateContextFromWorkingDir ¶
CreateContextFromWorkingDir creates a build context of the provided directory and writes it to the Writer
func GetCredentialsAsConfigMap ¶ added in v1.0.0
GetCredentialsAsConfigMap creates a new v1.ConfigMap with the provided credentials
func GetCredentialsFromConfig ¶ added in v1.0.0
GetCredentialsFromConfig reads the docker config located at ~/.docker/config.json
func GetCredentialsFromFlags ¶ added in v1.0.0
GetCredentialsFromFlags creates a dockerconfig "auths" object containing the provided credentials
func GetFilePaths ¶
GetFilePaths returns all paths required to build the docker image
func GuessRegistryFromTag ¶ added in v1.0.0
GuessRegistryFromTag guesses the container registry based on the provided image tag. Defaults to the index.docker.io registry
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.