Documentation
¶
Index ¶
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
Types ¶
This section is empty.