newMasterKey creates a new MasterKey from a URL, key name and version, setting the creation date to the current date.
(vaultURL string, keyName string, keyVersion string)
| 67 | // newMasterKey creates a new MasterKey from a URL, key name and version, |
| 68 | // setting the creation date to the current date. |
| 69 | func newMasterKey(vaultURL string, keyName string, keyVersion string) *MasterKey { |
| 70 | return &MasterKey{ |
| 71 | VaultURL: vaultURL, |
| 72 | Name: keyName, |
| 73 | Version: keyVersion, |
| 74 | CreationDate: time.Now().UTC(), |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | // NewMasterKey creates a new MasterKey from a URL, key name and (mandatory) version, |
| 79 | // setting the creation date to the current date. |
no outgoing calls