Documentation ¶
Index ¶
Constants ¶
View Source
const ( CKWatchEnvKey = "CK_WATCH" CKRevertEnvKey = "CK_REVERT" CKLastEnvKey = "CK_LAST" DirenvMode Mode = "direnv" StandaloneMode Mode = "standalone" )
Variables ¶
View Source
var ( CKEnvKeys = []string{ CKWatchEnvKey, CKRevertEnvKey, CKLastEnvKey, } )
Functions ¶
func KeyFileName ¶
func KeyFileName() string
func ReadInConfig ¶
func ReadInConfig() error
Types ¶
type Config ¶
type Config struct { Mode Mode `json:"mode"` Encryption Encryption `json:"encryption"` Env Env `json:"env"` Path string }
func GetConfigFromPath ¶
func (*Config) IsDirenvIntegrated ¶
func (*Config) MarshalJSON ¶
type Encryption ¶
type Encryption struct { Type crypt.EncryptionType `json:"type"` KeyPath string `json:"key_path"` }
type Env ¶
func (Env) CleanContext ¶
func (e Env) CleanContext()
CleanContext removes all the direnv-related environment variables. Call this after reverting the environment, otherwise direnv will just be amnesic about the previously-loaded environment.
Click to show internal directories.
Click to hide internal directories.