vault

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LOGGER = logging.MustGetLogger("vault")

Functions

This section is empty.

Types

type Vault

type Vault struct {
	ServiceName string

	ParticipantId string
	ENV           string
	// contains filtered or unexported fields
}

func InitializeVault

func InitializeVault() (*Vault, error)

func (*Vault) Append

func (vault *Vault) Append(input map[string]interface{}, subpath string) error

func (*Vault) AppendSecret

func (vault *Vault) AppendSecret(credInfo secrets.CredentialInfo, input map[string]interface{}) error

func (*Vault) Create

func (vault *Vault) Create(input map[string]interface{}, subpath string) error

func (*Vault) CreateAccount

func (vault *Vault) CreateAccount(credInfo secrets.CredentialInfo, input map[string]interface{}) error

func (*Vault) Delete

func (vault *Vault) Delete(subpath string) error

func (*Vault) DeleteSingleSecretEntry

func (vault *Vault) DeleteSingleSecretEntry(credentialInfo secrets.CredentialInfo, target string) error

func (*Vault) GetAccount

func (vault *Vault) GetAccount(participantId, accountName string) (nodeconfig.Account, error)

func (*Vault) GetSecretPhrase

func (vault *Vault) GetSecretPhrase(participantId, accountName string) (string, error)

func (*Vault) InitEnv

func (vault *Vault) InitEnv()

func (*Vault) Override

func (vault *Vault) Override(input map[string]interface{}, subpath string) error

func (*Vault) Read

func (vault *Vault) Read(subpath string) (map[string]interface{}, error)

func (*Vault) StoreAccount

func (vault *Vault) StoreAccount(accountName string, account nodeconfig.Account, randString string) error

func (*Vault) Update

func (vault *Vault) Update(input map[string]interface{}, subpath string) error

func (*Vault) UpdateAccount

func (vault *Vault) UpdateAccount(credInfo secrets.CredentialInfo, input map[string]interface{}) error

Jump to

Keyboard shortcuts

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