Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoSecretErr = NoSecretError{}
Functions ¶
func Register ¶ added in v0.10.0
func Register(ssf SecretStoreProvider, spec *v1.ProviderSpec)
Register a secret store provider with target spec.
Types ¶
type NoSecretError ¶ added in v0.10.0
type NoSecretError struct{}
NoSecretError will be returned when GetSecret call can not find the desired secret.
func (NoSecretError) Error ¶ added in v0.10.0
func (NoSecretError) Error() string
type SecretStore ¶
type SecretStore interface { // GetSecret retrieves ref secret from various cloud secret manager. GetSecret(ctx context.Context, ref v1.ExternalSecretRef) ([]byte, error) }
SecretStore provides the interface to interact with various cloud secret manager.
type SecretStoreProvider ¶ added in v0.10.0
type SecretStoreProvider interface { // NewSecretStore constructs a usable secret store with specific provider spec. NewSecretStore(spec v1.SecretStoreSpec) (SecretStore, error) }
SecretStoreProvider is a factory type for secret store.
func GetProvider ¶ added in v0.10.0
func GetProvider(spec *v1.ProviderSpec) (SecretStoreProvider, bool)
GetProvider returns the provider from the provider spec.
func GetProviderByName ¶ added in v0.10.0
func GetProviderByName(providerName string) (SecretStoreProvider, bool)
GetProviderByName returns registered provider by name.
Click to show internal directories.
Click to hide internal directories.