Documentation ¶
Index ¶
- type Config
- type EnvApp
- type EnvFile
- func (f EnvFile) Decrypted(passphrase *validate.Passphrase) EnvFile
- func (f EnvFile) Encrypted(passphrase *validate.Passphrase) EnvFile
- func (f *EnvFile) Profile(app, profile string) EnvProfile
- func (f *EnvFile) Profiles(app string) map[string]EnvProfile
- func (f *EnvFile) SetVar(app, profile, name string, value EnvVar)
- func (f *EnvFile) Var(app, profile, name string) (EnvVar, bool)
- func (f *EnvFile) Vars(app, profile string) map[string]EnvVar
- type EnvProfile
- type EnvVar
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Prefix string // contains filtered or unexported fields }
Config .
func (Config) Set ¶
func (c Config) Set(passphrase *validate.Passphrase)
Set a new secure environment variable.
func (Config) View ¶
func (c Config) View(passphrase *validate.Passphrase)
View a secure environment variable.
type EnvApp ¶
type EnvApp struct {
Profiles map[string]EnvProfile `json:"profiles"`
}
EnvApp represents an application.
type EnvFile ¶
EnvFile is an environment config file.
func (EnvFile) Decrypted ¶
func (f EnvFile) Decrypted(passphrase *validate.Passphrase) EnvFile
Decrypted returns a decrypted object.
type EnvProfile ¶
EnvProfile is a profile for an application.
func (EnvProfile) Strings ¶
func (f EnvProfile) Strings(passphrase *validate.Passphrase) []string
Strings returns a string array of environment variables.
Click to show internal directories.
Click to hide internal directories.