Lines Matching defs:Wrapper
37 type Wrapper struct { struct
39 credsPath string // Path to the creds file generated during service account creation
42 project string
43 location string
44 keyRing string
45 cryptoKey string
46 parentName string // Parent path built from the above values
48 userAgent string
50 currentKeyID *atomic.Value
52 client *cloudkms.KeyManagementClient
76 func (s *Wrapper) SetConfig(config map[string]string) (map[string]string, error) {
166 func (s *Wrapper) Init(_ context.Context) error {
172 func (s *Wrapper) Finalize(_ context.Context) error {
177 func (s *Wrapper) Type() string {
182 func (s *Wrapper) KeyID() string {
187 func (s *Wrapper) HMACKeyID() string {
194 …Encrypt(ctx context.Context, plaintext, aad []byte) (blob *wrapping.EncryptedBlobInfo, err error) {
232 …) Decrypt(ctx context.Context, in *wrapping.EncryptedBlobInfo, aad []byte) (pt []byte, err error) {
283 func (s *Wrapper) getClient() (*cloudkms.KeyManagementClient, error) {