Documentation ¶
Index ¶
- Variables
- 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 DownloadOrUpdateGitRepo(url string) (path string, err error)
- func EnvdHomeDir(path ...string) string
- func FileExists(filename string) (bool, error)
- func FindFileAbsPath(path, fileName string) (string, error)
- func GetRandomName(retry int) string
- func RemoveAll(dirname string) error
- func RootDir() (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultConfigDir string DefaultCacheDir string DefaultEnvdLibDir string )
Functions ¶
func ConfigFile ¶ added in v0.2.0
ConfigFile returns the location for the specified envd config file
func CreateIfNotExist ¶
func DownloadOrUpdateGitRepo ¶ added in v0.2.0
DownloadOrUpdateGitRepo downloads (if not exist) or update (if exist)
func EnvdHomeDir ¶ added in v0.2.0
func FileExists ¶
FileExists returns true if the file exists
func FindFileAbsPath ¶ added in v0.2.0
FindFileAbsPath returns the absolute path for the given path and file
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`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.