Versions in this module Expand all Collapse all v2 v2.1.0 Apr 8, 2024 Changes in this version + const EnvGcpCkmsWrapperCredsPath + const EnvGcpCkmsWrapperCryptoKey + const EnvGcpCkmsWrapperKeyRing + const EnvGcpCkmsWrapperLocation + const EnvGcpCkmsWrapperProject + const EnvVaultGcpCkmsSealCryptoKey + const EnvVaultGcpCkmsSealKeyRing + const GcpCkmsEncrypt + const GcpCkmsEnvelopeAesGcmEncrypt + func WithCredentials(with string) wrapping.Option + func WithCryptoKey(with string) wrapping.Option + func WithKeyNotRequired(with bool) wrapping.Option + func WithKeyRing(with string) wrapping.Option + func WithProject(with string) wrapping.Option + func WithRegion(with string) wrapping.Option + func WithUserAgent(with string) wrapping.Option + type OptionFunc func(*options) error + type Wrapper struct + func NewWrapper() *Wrapper + func (s *Wrapper) Client() *cloudkms.KeyManagementClient + func (s *Wrapper) Decrypt(ctx context.Context, in *wrapping.BlobInfo, opt ...wrapping.Option) ([]byte, error) + func (s *Wrapper) Encrypt(ctx context.Context, plaintext []byte, opt ...wrapping.Option) (*wrapping.BlobInfo, error) + func (s *Wrapper) KeyId(_ context.Context) (string, error) + func (s *Wrapper) KeyRingResourceName() string + func (s *Wrapper) LocationName() string + func (s *Wrapper) SetConfig(_ context.Context, opt ...wrapping.Option) (*wrapping.WrapperConfig, error) + func (s *Wrapper) Type(_ context.Context) (wrapping.WrapperType, error) v2.1.0-development20240408 Apr 8, 2024