Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Project - this is constant used in params Project = "project" // Location - this is constant used in params Location = "location" // KeyRing - this is constant used in params KeyRing = "keyring" // Key - this is constant used in params Key = "key" )
Variables ¶
View Source
var ( // ErrProjectMissing - this is the custom error, returned when project is missing ErrProjectMissing = errors.New("project is empty or missing") // ErrLocationMissing = this is the custom error, returned when the location is missing ErrLocationMissing = errors.New("location is empty or missing") // ErrKeyRingMissing = this is the custom error, returned when the key ring is missing ErrKeyRingMissing = errors.New("key ring is empty or missing") // ErrKeyMissing = this is the custom error, returned when the key is missing ErrKeyMissing = errors.New("key is empty or missing") )
Functions ¶
This section is empty.
Types ¶
type GoogleKMS ¶
type GoogleKMS struct{}
GoogleKMS struct represents GCP Key Management Service
func (*GoogleKMS) Decrypt ¶
Decrypt is responsible for decrypting ciphertext and returning plaintext in bytes using GCP KMS. All configuration is passed in params with according validation. See Crypt.DecryptFile
Click to show internal directories.
Click to hide internal directories.