MasterKey is a GCP KMS key used to encrypt and decrypt sops' data key.
MasterKeysFromResourceIDString takes a comma separated list of GCP KMS resource IDs and returns a slice of new MasterKeys for them
NewMasterKeyFromResourceID takes a GCP KMS resource ID string and returns a new MasterKey for that
Decrypt decrypts the EncryptedKey field with CGP KMS and returns the result.
Encrypt takes a sops data key, encrypts it with GCP KMS and stores the result in the EncryptedKey field
EncryptIfNeeded encrypts the provided sops' data key and encrypts it if it hasn't been encrypted yet
EncryptedDataKey returns the encrypted data key this master key holds
NeedsRotation returns whether the data key needs to be rotated or not.
SetEncryptedDataKey sets the encrypted data key for this master key
ToMap converts the MasterKey to a map for serialization purposes
ToString converts the key to a string representation