encryptionatrest

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAwsKmsConfigDefaults

func HandleAwsKmsConfigDefaults(ctx context.Context, currentStateFile, newStateFile, earRSConfig *TfEncryptionAtRestRSModel)

func HandleAzureKeyVaultConfigDefaults

func HandleAzureKeyVaultConfigDefaults(ctx context.Context, earRSCurrent, earRSNew, earRSConfig *TfEncryptionAtRestRSModel)

func HandleGcpKmsConfig

func HandleGcpKmsConfig(ctx context.Context, earRSCurrent, earRSNew, earRSConfig *TfEncryptionAtRestRSModel)

func NewAtlasAwsKms

func NewAtlasAwsKms(tfAwsKmsConfigSlice []TfAwsKmsConfigModel) *admin.AWSKMSConfiguration

func NewAtlasAzureKeyVault

func NewAtlasAzureKeyVault(tfAzKeyVaultConfigSlice []TfAzureKeyVaultConfigModel) *admin.AzureKeyVault

func NewAtlasGcpKms

func NewAtlasGcpKms(tfGcpKmsConfigSlice []TfGcpKmsConfigModel) *admin.GoogleCloudKMS

func Resource

func Resource() resource.Resource

func ResourceMongoDBAtlasEncryptionAtRestCreateRefreshFunc

func ResourceMongoDBAtlasEncryptionAtRestCreateRefreshFunc(ctx context.Context, projectID string, client EarService, encryptionAtRestReq *admin.EncryptionAtRest) retry.StateRefreshFunc

Types

type EarService

type EarService interface {
	UpdateEncryptionAtRest(ctx context.Context, groupID string, encryptionAtRest *admin.EncryptionAtRest) (*admin.EncryptionAtRest, *http.Response, error)
}

func ServiceFromClient

func ServiceFromClient(client *admin.APIClient) EarService

type EarServiceFromClient

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

func (*EarServiceFromClient) UpdateEncryptionAtRest

func (a *EarServiceFromClient) UpdateEncryptionAtRest(ctx context.Context, groupID string, encryptionAtRest *admin.EncryptionAtRest) (*admin.EncryptionAtRest, *http.Response, error)

type TfAwsKmsConfigModel

type TfAwsKmsConfigModel struct {
	AccessKeyID         types.String `tfsdk:"access_key_id"`
	SecretAccessKey     types.String `tfsdk:"secret_access_key"`
	CustomerMasterKeyID types.String `tfsdk:"customer_master_key_id"`
	Region              types.String `tfsdk:"region"`
	RoleID              types.String `tfsdk:"role_id"`
	Enabled             types.Bool   `tfsdk:"enabled"`
}

func NewTFAwsKmsConfig

func NewTFAwsKmsConfig(ctx context.Context, awsKms *admin.AWSKMSConfiguration) []TfAwsKmsConfigModel

type TfAzureKeyVaultConfigModel

type TfAzureKeyVaultConfigModel struct {
	ClientID          types.String `tfsdk:"client_id"`
	AzureEnvironment  types.String `tfsdk:"azure_environment"`
	SubscriptionID    types.String `tfsdk:"subscription_id"`
	ResourceGroupName types.String `tfsdk:"resource_group_name"`
	KeyVaultName      types.String `tfsdk:"key_vault_name"`
	KeyIdentifier     types.String `tfsdk:"key_identifier"`
	Secret            types.String `tfsdk:"secret"`
	TenantID          types.String `tfsdk:"tenant_id"`
	Enabled           types.Bool   `tfsdk:"enabled"`
}

type TfEncryptionAtRestRSModel

type TfEncryptionAtRestRSModel struct {
	ID                   types.String                 `tfsdk:"id"`
	ProjectID            types.String                 `tfsdk:"project_id"`
	AwsKmsConfig         []TfAwsKmsConfigModel        `tfsdk:"aws_kms_config"`
	AzureKeyVaultConfig  []TfAzureKeyVaultConfigModel `tfsdk:"azure_key_vault_config"`
	GoogleCloudKmsConfig []TfGcpKmsConfigModel        `tfsdk:"google_cloud_kms_config"`
}

func NewTfEncryptionAtRestRSModel

func NewTfEncryptionAtRestRSModel(ctx context.Context, projectID string, encryptionResp *admin.EncryptionAtRest) *TfEncryptionAtRestRSModel

type TfGcpKmsConfigModel

type TfGcpKmsConfigModel struct {
	ServiceAccountKey    types.String `tfsdk:"service_account_key"`
	KeyVersionResourceID types.String `tfsdk:"key_version_resource_id"`
	Enabled              types.Bool   `tfsdk:"enabled"`
}

func NewTFGcpKmsConfig

func NewTFGcpKmsConfig(ctx context.Context, gcpKms *admin.GoogleCloudKMS) []TfGcpKmsConfigModel

Jump to

Keyboard shortcuts

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