Documentation ¶
Index ¶
- Variables
- func BoolPtr(b bool) *bool
- func CreateTar(w io.Writer, root string, paths []string) error
- func CreateTarGz(w io.Writer, root string, paths []string) error
- func ExpandPaths(workspace string, paths []string) ([]string, error)
- func ExpandPathsGlob(paths []string) ([]string, error)
- func IsSupportedKubernetesFormat(n string) bool
- func RandomID() string
- func ReadConfiguration(filename string) ([]byte, error)
- func RelPathToAbsPath(relPaths []string) ([]string, error)
- func RunCmd(cmd *exec.Cmd) error
- func RunCmdOut(cmd *exec.Cmd) ([]byte, error)
- func StrSliceContains(sl []string, s string) bool
- type Command
- type Commander
Constants ¶
This section is empty.
Variables ¶
var Fs = afero.NewOsFs()
Functions ¶
func ExpandPaths ¶
ExpandPaths uses a filepath.Match to expand paths according to wildcards. It requires a workspace directory, which is walked and tested for wildcard matches It is used by the dockerfile parser and you most likely want to use ExpandPathsGlob
func ExpandPathsGlob ¶
ExpandPathsGlob expands paths according to filepath.Glob patterns Returns a list of unique files that match the glob patterns passed in.
func IsSupportedKubernetesFormat ¶
IsSupportedKubernetesFormat is for determining if a file under a glob pattern is deployable file format. It makes no attempt to check whether or not the file is actually deployable or has the correct contents.
func ReadConfiguration ¶ added in v0.4.0
func RelPathToAbsPath ¶ added in v0.4.0
func StrSliceContains ¶
Types ¶
type Command ¶
Command is an interface used to run commands. All packages should use this interface instead of calling exec.Cmd directly.