Documentation ¶
Index ¶
- Variables
- func Base(dir string) string
- func CWD() (string, error)
- func CacheFile(filename string) (string, error)
- func ConfigFile(filename string) (string, error)
- func CreateIfNotExist(f string) error
- func DirExists(filename string) (bool, error)
- func FileExists(filename string) (bool, error)
- func GetRandomName(retry int) string
- func MkdirIfNotExist(filepath string) error
- func RemoveAll(dirname string) error
- func RootDir() (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultConfigDir string DefaultCacheDir string )
Functions ¶
func ConfigFile ¶ added in v0.2.0
ConfigFile returns the location for the specified envd config file
func CreateIfNotExist ¶
func FileExists ¶
FileExists returns true if the file exists
func GetRandomName ¶ added in v0.2.0
GetRandomName generates a random name from the list of adjectives and surnames in this package formatted as "adjective_surname". For example 'focused_turing'. If retry is non-zero, a random integer between 0 and 10 will be added to the end of the name, e.g `focused_turing3`
func MkdirIfNotExist ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.