Versions in this module Expand all Collapse all v2 v2.1.0 Apr 8, 2024 Changes in this version + const EnvAliCloudKmsWrapperKeyId + const EnvVaultAliCloudKmsSealKeyId + func WithAccessKey(with string) wrapping.Option + func WithAccessSecret(with string) wrapping.Option + func WithDomain(with string) wrapping.Option + func WithRegion(with string) wrapping.Option + func WithSecretKey(with string) wrapping.Option + type OptionFunc func(*options) error + type Wrapper struct + func NewWrapper() *Wrapper + func (k *Wrapper) Decrypt(_ context.Context, in *wrapping.BlobInfo, opt ...wrapping.Option) ([]byte, error) + func (k *Wrapper) Encrypt(_ context.Context, plaintext []byte, opt ...wrapping.Option) (*wrapping.BlobInfo, error) + func (k *Wrapper) KeyId(_ context.Context) (string, error) + func (k *Wrapper) SetConfig(_ context.Context, opt ...wrapping.Option) (*wrapping.WrapperConfig, error) + func (k *Wrapper) Type(_ context.Context) (wrapping.WrapperType, error) v2.1.0-development20240408 Apr 8, 2024