Documentation ¶
Index ¶
- func AddVariableToEnvironment(environmentName string)
- func CreateEnvironment(environmentName string)
- func DecryptDataFromSealedEnvironment(environment SealedEnvironment, keyPassword []byte) map[string]SecretVariable
- func EditVariableFromEnvironment(environmentName string)
- func InjectVariablesFromEnvironment(environmentName string)
- func ListEnvironments()
- func ReadSecretFromStdin(prompt string) []byte
- func ReadStringFromStdin(prompt string) string
- func RemoveEnvironment(environmentName string)
- func RemoveVariableFromEnvironment(environmentName string)
- func ShowEnvironment(environmentName string, showValues bool)
- func SpawnShell(environmentName string)
- type SealedEnvironment
- type SecretVariable
- type UnsealedEnvironment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddVariableToEnvironment ¶
func AddVariableToEnvironment(environmentName string)
AddVariableToEnvironment : Adds variable to specified environment
func CreateEnvironment ¶
func CreateEnvironment(environmentName string)
CreateEnvironment : Creates secret environment
func DecryptDataFromSealedEnvironment ¶
func DecryptDataFromSealedEnvironment(environment SealedEnvironment, keyPassword []byte) map[string]SecretVariable
DecryptDataFromSealedEnvironment : Decrypts and returns data from sealed environment
func EditVariableFromEnvironment ¶
func EditVariableFromEnvironment(environmentName string)
EditVariableFromEnvironment : Edit variable in specified environment
func InjectVariablesFromEnvironment ¶
func InjectVariablesFromEnvironment(environmentName string)
InjectVariablesFromEnvironment : Inject variables from environment and spawn subshell with them.
func ReadSecretFromStdin ¶
ReadSecretFromStdin : reads secret from stdin with custom prompt without printing it
func ReadStringFromStdin ¶
ReadStringFromStdin : reads string from stdin with custom prompt
func RemoveEnvironment ¶
func RemoveEnvironment(environmentName string)
RemoveEnvironment : Removes the requested environment from database
func RemoveVariableFromEnvironment ¶
func RemoveVariableFromEnvironment(environmentName string)
RemoveVariableFromEnvironment : Removes variable from specified environment
func ShowEnvironment ¶
ShowEnvironment : List variables in environment
func SpawnShell ¶
func SpawnShell(environmentName string)
SpawnShell : Spawns default system shell with injected variables
Types ¶
type SealedEnvironment ¶
type SealedEnvironment struct { PrivateKey []byte // sealed Aes []byte // sealed Nonce []byte // sealed Data []byte // sealed }
SealedEnvironment : privateKey, aes, nonce and data are sealed/encrypted
type SecretVariable ¶
SecretVariable : containes information about variable itself, its category and value
type UnsealedEnvironment ¶
type UnsealedEnvironment struct {
// contains filtered or unexported fields
}
UnsealedEnvironment : privateKey is selaed, data is decrypted and decoded