environments

package module
v0.0.0-...-ed43e34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 ListEnvironments

func ListEnvironments()

ListEnvironments : List stored environments

func ReadSecretFromStdin

func ReadSecretFromStdin(prompt string) []byte

ReadSecretFromStdin : reads secret from stdin with custom prompt without printing it

func ReadStringFromStdin

func ReadStringFromStdin(prompt string) string

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

func ShowEnvironment(environmentName string, showValues bool)

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

type SecretVariable struct {
	Category string
	Value    string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL