Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ConfigDirEnvName is the name of the environment variable that can be used // to override the config directory. ConfigDirEnvName = "KN_CONFIG_DIR" // CacheDirEnvName is the name of the environment variable that can be used // to override the cache directory. CacheDirEnvName = "KN_CACHE_DIR" )
Variables ¶
This section is empty.
Functions ¶
func Cache ¶
Cache returns the path to the cache directory. It will be created if it does not exist.
func Config ¶
Config returns the path to the config directory. It will be created if it does not exist.
func WithCacheDir ¶
WithCacheDir returns a new context with the given cache directory configured. It should be used for testing only.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.