Documentation ¶
Index ¶
Constants ¶
View Source
const EnvClient = "env.client"
Variables ¶
View Source
var (
SupportProvider map[string]CreateProvider
)
Functions ¶
func RegisterProvider ¶
Types ¶
type ClientManager ¶
type ClientManager interface { Register(clientKey string, secretClient SecretClient) GetClient(clientKey string) (SecretClient, error) Delete(clientKey string) }
type CreateProvider ¶
type CreateProvider func(opt *ProviderOptions)
type Provider ¶
type Provider interface { ClientManager // NewClient constructs secrets client by secret store NewClient(ctx context.Context, store *v1alpha1.SecretStore, kube client.Client) (SecretClient, error) // NewClientByENV constructs secrets client by environment variable NewClientByENV(ctx context.Context, region string) (SecretClient, error) GetName() string GetRegion() string }
func GetProviderByName ¶
type ProviderOptions ¶
type SecretClient ¶
type SecretClient interface { GetName() string // GetSecret gets secret via externalSecret GetExternalSecret(ctx context.Context, data *v1alpha1.DataSource, kube client.Client) (map[string][]byte, error) GetExternalSecretWithExtract(ctx context.Context, data *v1alpha1.DataProcess, kube client.Client) (map[string][]byte, error) }
Click to show internal directories.
Click to hide internal directories.