Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDir ¶ added in v0.0.29
func DefaultDir() string
DefaultDir derives the default Thelma root directory. It will be: * The value of the THELMA_ROOT env var, if set * If a valid home directory exists for current user, it will be $HOME/.thelma * Else, /tmp/.thelma.<pid> (worst-case fallback option in weird environments) Note that this function identifies the root directory path, but does NOT create the root directory; it may or may not exist.
Types ¶
type Root ¶ added in v0.0.29
type Root interface { // Dir returns the Thelma installation root directory, usually ~/.thelma Dir() string // LogDir returns the path where Thelma debug logs are stored ($ROOT/logs) LogDir() string // CachesDir returns the Thelma cache directory ($ROOT/caches) CachesDir() string // CredentialsDir returns the path to Thelma credentials directory ($ROOT/credentials) CredentialsDir() string // ReleasesDir returns the Thelma releases directory ($ROOT/releases) ReleasesDir() string }
Click to show internal directories.
Click to hide internal directories.