Documentation ¶
Index ¶
- func CreateDataKey(ctx context.Context, m *m.Mongo, keyVaultNamespace, keyAltName string, ...) (*primitive.Binary, error)
- func GetDataKey(ctx context.Context, m *m.Mongo, keyVaultNamespace, keyAltName string, ...) (res *primitive.Binary, err error)
- func New(ctx context.Context, serviceName string, logger log.Log, c Config, t m.Tracer, ...) (*m.Mongo, error)
- func SetEncryptionKey(ctx context.Context, logger log.Log, encryptionSchema *string, ...) (map[string]interface{}, error)
- type AWSDataKeyOpts
- type AWSKMSProvider
- func GetAWSProvider(ctx context.Context, logger log.Log, awsConfig *aws.Config, kmsARN string) (provider *AWSKMSProvider, err error)
- func GetDefaultAWSProvider(ctx context.Context, logger log.Log, kmsARN string) (*AWSKMSProvider, error)
- func NewAWSProvider(credentials map[string]interface{}, opts AWSDataKeyOpts) *AWSKMSProvider
- type Config
- type MasterKeyProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDataKey ¶
func GetDataKey ¶
Types ¶
type AWSDataKeyOpts ¶
type AWSKMSProvider ¶
type AWSKMSProvider struct {
// contains filtered or unexported fields
}
func GetAWSProvider ¶
func GetDefaultAWSProvider ¶
func NewAWSProvider ¶
func NewAWSProvider(credentials map[string]interface{}, opts AWSDataKeyOpts) *AWSKMSProvider
func (*AWSKMSProvider) Credentials ¶
func (a *AWSKMSProvider) Credentials() map[string]map[string]interface{}
func (*AWSKMSProvider) DataKeyOpts ¶
func (a *AWSKMSProvider) DataKeyOpts() interface{}
func (*AWSKMSProvider) Name ¶
func (a *AWSKMSProvider) Name() string
type MasterKeyProvider ¶
type MasterKeyProvider interface { Name() string Credentials() map[string]map[string]interface{} DataKeyOpts() interface{} }
func GetAWSMasterKeyProvider ¶
Click to show internal directories.
Click to hide internal directories.