legacy

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidPassword         = errors.New("Invalid password")
	ErrInvalidKeyConfig        = errors.New("Invalid key configuration")
	ErrInvalidEncryptionConfig = errors.New("Invalid encryption configuration")
)

Functions

This section is empty.

Types

type Environment

type Environment struct {
	Name string            `json:"name"`
	Vars map[string]string `json:"vars"`
}

type KeyDetails

type KeyDetails struct {
	Digest     string `json:"digest"`
	Iterations int    `json:"iterations"`
	Salt       []byte `json:"salt"`
}

type Vault

type Vault struct {
	KeyDetails KeyDetails `json:"keyDetails"`

	MACDigest  string `json:"macDigest"`
	Cipher     string `json:"cipher"`
	CipherMode string `json:"cipherMode"`

	MAC          []byte `json:"mac"`
	IV           []byte `json:"iv"`
	Environments []byte `json:"environments"`
}

func ReadVault

func ReadVault() (*Vault, error)

func (*Vault) DecryptEnvironments

func (v *Vault) DecryptEnvironments(password string) (map[string]Environment, error)

Jump to

Keyboard shortcuts

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