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 (*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 NewEncryptionAtRestAPI ¶
func NewEncryptionAtRestAPI(api admin.EncryptionAtRestUsingCustomerKeyManagementApi) *EncryptionAtRestAPI
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
Click to show internal directories.
Click to hide internal directories.