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 + Name string + VaultURL string + Version string + func MasterKeysFromURLs(urls string) ([]*MasterKey, error) + func NewMasterKey(vaultURL string, keyName string, keyVersion string) *MasterKey + func NewMasterKeyFromURL(url 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{}