encryptionatrest

package
v2.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualSpecs

func EqualSpecs(spec, atlas *EncryptionAtRest) bool

Types

type AwsKms

type AwsKms struct {
	akov2.AwsKms
	AccessKeyID                  string
	SecretAccessKey              string
	CustomerMasterKeyID          string
	RoleID                       string
	CloudProviderIntegrationRole string
}

func (*AwsKms) SetSecrets

func (a *AwsKms) SetSecrets(customerMasterKeyID, roleID string)

func (*AwsKms) ToAtlas

func (a *AwsKms) ToAtlas() *admin.AWSKMSConfiguration

type AzureKeyVault

type AzureKeyVault struct {
	akov2.AzureKeyVault
	SubscriptionID string
	KeyVaultName   string
	KeyIdentifier  string
	Secret         string
}

func (*AzureKeyVault) SetSecrets

func (az *AzureKeyVault) SetSecrets(subscriptionID, keyVaultName, keyIdentifier, secret string)

func (*AzureKeyVault) ToAtlas

func (az *AzureKeyVault) ToAtlas() *admin.AzureKeyVault

type EncryptionAtRest

type EncryptionAtRest struct {
	AWS   AwsKms
	Azure AzureKeyVault
	GCP   GoogleCloudKms
}

func NewEncryptionAtRest

func NewEncryptionAtRest(project *akov2.AtlasProject) *EncryptionAtRest

type EncryptionAtRestAPI

type EncryptionAtRestAPI struct {
	// contains filtered or unexported fields
}

func (*EncryptionAtRestAPI) Get

func (e *EncryptionAtRestAPI) Get(ctx context.Context, projectID string) (*EncryptionAtRest, error)

func (*EncryptionAtRestAPI) Update

func (e *EncryptionAtRestAPI) Update(ctx context.Context, projectID string, ear EncryptionAtRest) error

type EncryptionAtRestService

type EncryptionAtRestService interface {
	Get(context.Context, string) (*EncryptionAtRest, error)
	Update(context.Context, string, EncryptionAtRest) error
}

type GoogleCloudKms

type GoogleCloudKms struct {
	akov2.GoogleCloudKms
	ServiceAccountKey    string
	KeyVersionResourceID string
}

func (*GoogleCloudKms) SetSecrets

func (g *GoogleCloudKms) SetSecrets(serviceAccountKey, keyVersionResourceID string)

func (*GoogleCloudKms) ToAtlas

func (g *GoogleCloudKms) ToAtlas() *admin.GoogleCloudKMS

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL