Documentation
¶
Index ¶
- Constants
- type Vault
- func (vlt *Vault) DeRefSecrets(path string) error
- func (v *Vault) DeepCopy() *Vault
- func (v *Vault) DeepCopyInto(out *Vault)
- func (vlt *Vault) Delete() error
- func (vlt *Vault) DeleteSecret(secretName string) error
- func (vlt *Vault) DeleteSecrets(secretNames []string) error
- func (vlt *Vault) GetAllSecrets() (secretsMap map[string][]byte, err error)
- func (vlt *Vault) GetSecret(secretName string) (decryptedSecret []byte, err error)
- func (vlt *Vault) Id() string
- func (vlt *Vault) ImportSecrets(importData []byte, force bool) (err error)
- func (vlt *Vault) IsLocked() bool
- func (vlt *Vault) ListAccessors() ([]crypto.PublicKey, error)
- func (vlt *Vault) ListSealedSecrets() (map[string]crypto.SealedSecret, error)
- func (vlt *Vault) Lock()
- func (vlt *Vault) PutSecret(secretName string, secretValue []byte) (err error)
- func (vlt *Vault) RefSecrets(refType, file, name string, forceUpdate, dryRun bool) (result string, conflicting bool, err error)
- func (vlt *Vault) Revoke(publicKeys []*crypto.PublicKey, quantumSafe bool) error
- func (vlt *Vault) SecretExists(secretName string) (exists bool)
- func (vlt *Vault) Share(publicKey *crypto.PublicKey) (bool, error)
- func (vlt *Vault) ToK8s(k8sName, k8SecretFile string) (err error)
- func (vlt *Vault) Unlock(secretKey crypto.SecretKey) error
Constants ¶
View Source
const (
VaultKey crypto.KeyType = 'V'
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vault ¶
type Vault struct { Version string `json:"version,omitempty" yaml:"version,omitempty"` Secrets map[string]string `json:"slvSecrets" yaml:"slvSecrets"` 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, k8SecretFile string, hashLength uint8, quantumSafe bool, rootPublicKey *crypto.PublicKey, 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) DeRefSecrets ¶
func (*Vault) DeepCopyInto ¶
func (*Vault) DeleteSecret ¶
func (*Vault) DeleteSecrets ¶
func (*Vault) GetAllSecrets ¶
func (*Vault) ImportSecrets ¶
func (*Vault) ListSealedSecrets ¶
func (vlt *Vault) ListSealedSecrets() (map[string]crypto.SealedSecret, error)
func (*Vault) RefSecrets ¶
func (*Vault) SecretExists ¶
Click to show internal directories.
Click to hide internal directories.