legacy

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LegacyOperation vaulted.Operation = -1
)

Variables

This section is empty.

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 LegacyStore

type LegacyStore interface {
	OpenLegacyVault() (map[string]Environment, string, error)
}

func New

func New(steward vaulted.Steward) LegacyStore

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