Documentation ¶
Index ¶
- func SanitizeErr(err error) error
- type KeyManagementService
- func (kms *KeyManagementService) Capabilities() esv1beta1.SecretStoreCapabilities
- func (kms *KeyManagementService) Close(_ context.Context) error
- func (kms *KeyManagementService) DeleteSecret(_ context.Context, _ esv1beta1.PushSecretRemoteRef) error
- func (kms *KeyManagementService) GetAllSecrets(_ context.Context, _ esv1beta1.ExternalSecretFind) (map[string][]byte, error)
- func (kms *KeyManagementService) GetSecret(ctx context.Context, ref esv1beta1.ExternalSecretDataRemoteRef) ([]byte, error)
- func (kms *KeyManagementService) GetSecretMap(ctx context.Context, ref esv1beta1.ExternalSecretDataRemoteRef) (map[string][]byte, error)
- func (kms *KeyManagementService) NewClient(ctx context.Context, store esv1beta1.GenericStore, kube kclient.Client, ...) (esv1beta1.SecretsClient, error)
- func (kms *KeyManagementService) PushSecret(_ context.Context, _ *corev1.Secret, _ esv1beta1.PushSecretData) error
- func (kms *KeyManagementService) Validate() (esv1beta1.ValidationResult, error)
- func (kms *KeyManagementService) ValidateStore(store esv1beta1.GenericStore) error
- type SMInterface
- type SecretsManagerClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeErr ¶ added in v0.7.3
SanitizeErr sanitizes the error string because the requestID must not be included in the error. otherwise the secrets keeps syncing.
Types ¶
type KeyManagementService ¶
type KeyManagementService struct { Client SMInterface Config *openapi.Config }
func (*KeyManagementService) Capabilities ¶ added in v0.7.0
func (kms *KeyManagementService) Capabilities() esv1beta1.SecretStoreCapabilities
Capabilities return the provider supported capabilities (ReadOnly, WriteOnly, ReadWrite).
func (*KeyManagementService) Close ¶
func (kms *KeyManagementService) Close(_ context.Context) error
func (*KeyManagementService) DeleteSecret ¶ added in v0.7.0
func (kms *KeyManagementService) DeleteSecret(_ context.Context, _ esv1beta1.PushSecretRemoteRef) error
func (*KeyManagementService) GetAllSecrets ¶ added in v0.5.0
func (kms *KeyManagementService) GetAllSecrets(_ context.Context, _ esv1beta1.ExternalSecretFind) (map[string][]byte, error)
Empty GetAllSecrets.
func (*KeyManagementService) GetSecret ¶
func (kms *KeyManagementService) GetSecret(ctx context.Context, ref esv1beta1.ExternalSecretDataRemoteRef) ([]byte, error)
GetSecret returns a single secret from the provider.
func (*KeyManagementService) GetSecretMap ¶
func (kms *KeyManagementService) GetSecretMap(ctx context.Context, ref esv1beta1.ExternalSecretDataRemoteRef) (map[string][]byte, error)
GetSecretMap returns multiple k/v pairs from the provider.
func (*KeyManagementService) NewClient ¶
func (kms *KeyManagementService) NewClient(ctx context.Context, store esv1beta1.GenericStore, kube kclient.Client, namespace string) (esv1beta1.SecretsClient, error)
NewClient constructs a new secrets client based on the provided store.
func (*KeyManagementService) PushSecret ¶ added in v0.7.0
func (kms *KeyManagementService) PushSecret(_ context.Context, _ *corev1.Secret, _ esv1beta1.PushSecretData) error
func (*KeyManagementService) Validate ¶ added in v0.4.2
func (kms *KeyManagementService) Validate() (esv1beta1.ValidationResult, error)
func (*KeyManagementService) ValidateStore ¶ added in v0.5.0
func (kms *KeyManagementService) ValidateStore(store esv1beta1.GenericStore) error
type SMInterface ¶
type SMInterface interface { GetSecretValue(ctx context.Context, request *kmssdk.GetSecretValueRequest) (*kmssdk.GetSecretValueResponseBody, error) Endpoint() string }
type SecretsManagerClient ¶ added in v0.7.3
type SecretsManagerClient interface { GetSecretValue( ctx context.Context, request *kms.GetSecretValueRequest, ) (*kms.GetSecretValueResponseBody, error) Endpoint() string }
Click to show internal directories.
Click to hide internal directories.