Documentation ¶
Index ¶
- Variables
- func GetEnvAsFloat64OrFallback(key string, defaultValue float64) (float64, error)
- func GetEnvAsIntOrFallback(key string, defaultValue int) (int, error)
- func GetEnvAsStringOrFallback(key, defaultValue string) string
- func GetPidsByName(timeout time.Duration, name string) ([]int, string, error)
- func Getwd() (string, error)
- func MakeDir(name string) error
- func MakeDirAll(name string) error
- func OpenAll(path string, flag int, perm os.FileMode) (*os.File, error)
- func OpenFile(path string, appended bool) (file *os.File, err error)
- func PathExist(path string) (bool, error)
- func RemoveBatch(filenames []string) error
- func RemoveWithGlob(pattern string) error
- func SameFile(fi1, fi2 string) bool
- func SymLink(oldname, newname string) error
Constants ¶
This section is empty.
Variables ¶
CTRL + C for SIGINT docker stop for SIGTERM
Functions ¶
func GetEnvAsFloat64OrFallback ¶
GetEnvAsFloat64OrFallback returns the env variable (parsed as float64) for the given key and falls back to the given defaultValue if not set
func GetEnvAsIntOrFallback ¶
GetEnvAsIntOrFallback returns the env variable (parsed as integer) for the given key and falls back to the given defaultValue if not set
func GetEnvAsStringOrFallback ¶
GetEnvAsStringOrFallback returns the env variable for the given key and falls back to the given defaultValue if not set
func GetPidsByName ¶ added in v0.0.5
func MakeDirAll ¶
MkdirAll creates a directory named path, along with any necessary parents, and returns nil, or else returns an error. The permission(0755) bits perm (before umask) are used for all directories that MkdirAll creates. If path is already a directory, MkdirAll does nothing
func RemoveBatch ¶ added in v0.0.27
func RemoveWithGlob ¶ added in v0.0.27
Types ¶
This section is empty.