vault

package
v3.0.0-rc3+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVaultSource

func NewVaultSource(storePath string, keyPath string, skipKeyring bool, opts ...config.SourceOption) config.Source

Types

type VaultSource

type VaultSource struct {
	config.Source
	// contains filtered or unexported fields
}

func (*VaultSource) Delete

func (v *VaultSource) Delete(key string, save bool) error

Delete removes a key from memory

func (*VaultSource) Read

func (v *VaultSource) Read() (*config.ChangeSet, error)

Loads ChangeSet from the source

func (*VaultSource) Set

func (v *VaultSource) Set(key string, value string, save bool) error

Set sets a key/value in memory (not encrypted)

func (*VaultSource) String

func (v *VaultSource) String() string

Name of source

func (*VaultSource) Watch

func (v *VaultSource) Watch() (config.SourceWatcher, error)

Watch for source changes Returns the entire changeset

func (*VaultSource) Write

func (v *VaultSource) Write(cs *config.ChangeSet) error

type Writer

type Writer interface {
	Write(cs *config.ChangeSet) error
}

Jump to

Keyboard shortcuts

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