Documentation
¶
Index ¶
- Constants
- type Vault
- func (vlt *Vault) DeRef(path string) error
- func (v *Vault) DeepCopy() *Vault
- func (v *Vault) DeepCopyInto(out *Vault)
- func (vlt *Vault) Delete() error
- func (vlt *Vault) DeleteItem(name string) error
- func (vlt *Vault) DeleteItems(names []string) error
- func (vlt *Vault) Exists(name string) (exists bool)
- func (vlt *Vault) Get(name string) (data *VaultData, err error)
- func (vlt *Vault) GetAllValues() (map[string][]byte, error)
- func (vlt *Vault) Id() string
- func (vlt *Vault) Import(importData []byte, force, encrypt bool) (err error)
- func (vlt *Vault) IsLocked() bool
- func (vlt *Vault) IsSecret(name string) (isSecret bool, err error)
- func (vlt *Vault) List(decrypt bool) (map[string]*VaultData, error)
- func (vlt *Vault) ListAccessors() ([]crypto.PublicKey, error)
- func (vlt *Vault) Lock()
- func (vlt *Vault) Put(name string, value []byte, encrypt bool) (err error)
- func (vlt *Vault) Ref(refType, file, name string, forceUpdate, encrypt, dryRun bool) (result string, conflicting bool, err error)
- func (vlt *Vault) Revoke(publicKeys []*crypto.PublicKey, quantumSafe bool) error
- func (vlt *Vault) Share(publicKey *crypto.PublicKey) (bool, error)
- func (vlt *Vault) ToK8s(name, namespace string, k8SecretContent []byte) (err error)
- func (vlt *Vault) Unlock(secretKey *crypto.SecretKey) error
- type VaultData
Constants ¶
View Source
const (
VaultKey crypto.KeyType = 'V'
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vault ¶
type Vault struct { Secrets map[string]string `json:"slvSecrets,omitempty" yaml:"slvSecrets,omitempty"` Data map[string]string `json:"slvData,omitempty" yaml:"slvData,omitempty"` Config vaultConfig `json:"slvConfig" yaml:"slvConfig"` // contains filtered or unexported fields }
func Get ¶
Returns the vault instance from a given yaml. The vault file name must end with .slv.yml or .slv.yaml.
func New ¶
func New(filePath, k8sName, k8sNamespace string, k8SecretContent []byte, hash, quantumSafe bool, publicKeys ...*crypto.PublicKey) (vlt *Vault, err error)
Returns new vault instance and the vault contents set into the specified field. The vault file name must end with .slv.yml or .slv.yaml.
func (*Vault) DeepCopyInto ¶
func (*Vault) DeleteItem ¶ added in v0.5.5
func (*Vault) DeleteItems ¶ added in v0.5.5
func (*Vault) GetAllValues ¶ added in v0.5.5
Click to show internal directories.
Click to hide internal directories.