Versions in this module Expand all Collapse all v3 v3.7.7 Oct 25, 2022 v3.7.6 Oct 25, 2022 Changes in this version + type MasterKey struct + CreationDate time.Time + EncryptedKey string + EnginePath string + KeyName string + VaultAddress string + func NewMasterKey(addess, enginePath, keyName string) *MasterKey + func NewMasterKeyFromURI(uri string) (*MasterKey, error) + func NewMasterKeysFromURIs(uris string) ([]*MasterKey, error) + func (key *MasterKey) Decrypt() ([]byte, error) + func (key *MasterKey) Encrypt(dataKey []byte) error + func (key *MasterKey) EncryptIfNeeded(dataKey []byte) error + func (key *MasterKey) EncryptedDataKey() []byte + func (key *MasterKey) NeedsRotation() bool + func (key *MasterKey) SetEncryptedDataKey(enc []byte) + func (key *MasterKey) ToString() string + func (key MasterKey) ToMap() map[string]interface{}