Documentation ¶
Index ¶
- Constants
- Variables
- func NewDedicateKMSClient(ctx context.Context, store *v1alpha1.SecretStore, kube client.Client) (*dkms.Client, error)
- func NewProvider(opts *backend.ProviderOptions)
- func NewShareKMSClient(ctx context.Context, store *v1alpha1.SecretStore, kube client.Client, ...) (*kms.Client, error)
- func RewriteRegexp(operation v1alpha1.ReplaceRule, in map[string]string) (map[string]string, error)
- type KMSClient
- func (c *KMSClient) GetExternalSecret(ctx context.Context, data *v1alpha1.DataSource, kube client.Client) (map[string][]byte, error)
- func (c *KMSClient) GetExternalSecretWithExtract(ctx context.Context, data *v1alpha1.DataProcess, kube client.Client) (map[string][]byte, error)
- func (c *KMSClient) GetName() string
- type Manager
- func (m *Manager) Delete(clientName string)
- func (m *Manager) GetClient(clientName string) (backendin.SecretClient, error)
- func (m *Manager) Register(clientName string, client backendin.SecretClient)
- func (m *Manager) RegisterRamProvider(clientName string, stopper provider.Stopper)
- func (m *Manager) StopProvider(clientName string)
- type Provider
- func (p *Provider) GetName() string
- func (p *Provider) GetRegion() string
- func (p *Provider) NewClient(ctx context.Context, store *v1alpha1.SecretStore, kube client.Client) (backend.SecretClient, error)
- func (p *Provider) NewClientByENV(ctx context.Context, region string) (backend.SecretClient, error)
Constants ¶
View Source
const ( RamRoleARNAuthType = "ram_role_arn" AKAuthType = "access_key" EcsRamRoleAuthType = "ecs_ram_role" OidcAuthType = "oidc_role_arn" )
View Source
const ( ProviderName = "kms" HTTPS = "https" )
View Source
const ( REJECTED_THROTTLING = "Rejected.Throttling" SERVICE_UNAVAILABLE_TEMPORARY = "ServiceUnavailableTemporary" INTERNAL_FAILURE = "InternalFailure" )
Variables ¶
Functions ¶
func NewDedicateKMSClient ¶
func NewProvider ¶
func NewProvider(opts *backend.ProviderOptions)
func NewShareKMSClient ¶
func RewriteRegexp ¶
RewriteRegexp rewrites a single Regexp Rewrite Operation.
Types ¶
type KMSClient ¶
type KMSClient struct {
// contains filtered or unexported fields
}
Client interface represent a backend client interface that should be implemented
func (*KMSClient) GetExternalSecret ¶
func (*KMSClient) GetExternalSecretWithExtract ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) GetClient ¶
func (m *Manager) GetClient(clientName string) (backendin.SecretClient, error)
func (*Manager) Register ¶
func (m *Manager) Register(clientName string, client backendin.SecretClient)
func (*Manager) RegisterRamProvider ¶
func (*Manager) StopProvider ¶
type Provider ¶
type Provider struct { *Manager // contains filtered or unexported fields }
Provider provides the ability to generate kms clients and manage kms clients
func (*Provider) NewClient ¶
func (p *Provider) NewClient(ctx context.Context, store *v1alpha1.SecretStore, kube client.Client) (backend.SecretClient, error)
func (*Provider) NewClientByENV ¶
Click to show internal directories.
Click to hide internal directories.