Documentation ¶
Index ¶
- func CheckError(err error)
- func ConvertKVStringsToMap(values []string) map[string]string
- func ConvertKVStringsToMapWithNil(values []string) map[string]*string
- func ExtractBaseImages(input io.Reader) ([]string, error)
- func HomeDir() string
- func PrintInfo(msg string)
- func Prompt(hint string) string
- func ReadDockerIgnore(contextDir string) ([]string, error)
- func SetClipboard(data string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func CheckError(err error)
func ConvertKVStringsToMap ¶ added in v0.2.4
ConvertKVStringsToMap converts ["key=value"] to {"key":"value"} Credit to https://github.com/docker/cli/blob/ebca1413117a3fcb81c89d6be226dcec74e5289f/opts/parse.go#L41
func ConvertKVStringsToMapWithNil ¶ added in v0.2.3
ConvertKVStringsToMapWithNil converts ["key=value"] to {"key":"value"} but set unset keys to nil - meaning the ones with no "=" in them. We use this in cases where we need to distinguish between
FOO= and FOO
where the latter case just means FOO was mentioned but not given a value Credit to: https://github.com/docker/cli/blob/ebca1413117a3fcb81c89d6be226dcec74e5289f/opts/parse.go#L60
func ReadDockerIgnore ¶
ReadDockerIgnore reads a .dockerignore file in `contextDir` and returns the list of file patterns to ignore. Note this will trim whitespace from each line as well as use GO's "clean" func to get the shortest/cleanest path for each. Excerpt from https://github.com/docker/docker/blob/master/builder/dockerignore/dockerignore.go
func SetClipboard ¶ added in v0.3.0
SetClipboard copies data to the shear plate of the system
Types ¶
This section is empty.