Documentation ¶
Overview ¶
vault.go
Index ¶
- type Vault
- func (v *Vault) Initialize() error
- func (v *Vault) VaultDelKey(key string) error
- func (v *Vault) VaultEnableBackup(value bool)
- func (v *Vault) VaultGetValue(key string) (string, error)
- func (v *Vault) VaultHasKey(key string) bool
- func (v *Vault) VaultListKeys() []string
- func (v *Vault) VaultSetValue(key, value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vault ¶
type Vault struct {
// contains filtered or unexported fields
}
Vault represents a secure key-value store.
func (*Vault) Initialize ¶
Initialize creates a new vault file if it doesn't exist.
func (*Vault) VaultDelKey ¶
VaultDelKey deletes a key from the vault.
func (*Vault) VaultEnableBackup ¶
func (*Vault) VaultGetValue ¶
VaultGetValue returns the value of a key from the vault.
func (*Vault) VaultHasKey ¶
VaultHasKey checks if the vault contains the specified key.
func (*Vault) VaultListKeys ¶
VaultListKeys lists all keys in the vault.
func (*Vault) VaultSetValue ¶
VaultSetValue sets the value of a key in the vault.
Click to show internal directories.
Click to hide internal directories.