Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrVaultNotInitialized = errors.New("vault is not properly initialized")
)
Functions ¶
This section is empty.
Types ¶
type AesGcmEncryption ¶
type AesGcmEncryption struct {
// contains filtered or unexported fields
}
func NewAesGcmEncryption ¶
func NewAesGcmEncryption(deriver KeyDeriver) *AesGcmEncryption
type Encryption ¶
type InitOption ¶
type InitOption interface {
// contains filtered or unexported methods
}
func WithEncryption ¶
func WithEncryption(encryption Encryption) InitOption
func WithLoadFromPath ¶
func WithLoadFromPath(path string) InitOption
func WithPassphrase ¶
func WithPassphrase(passphrase string) InitOption
func WithPassphraseFile ¶
func WithPassphraseFile(path string) InitOption
type KeyDeriver ¶
func Pbkdf2Deriver ¶
func Pbkdf2Deriver() KeyDeriver
type KeyDeriverFunc ¶
type Vault ¶
type Vault struct {
// contains filtered or unexported fields
}
func NewVault ¶
func NewVault(opts ...InitOption) (*Vault, error)
func (*Vault) MarshalJSON ¶
func (*Vault) RemoveValue ¶
func (*Vault) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.