Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SecretProviders = cloudy.NewProviderRegistry[SecretProvider]()
Functions ¶
func SaveSecret ¶
func SecretsTest ¶
func SecretsTest(t *testing.T, ctx context.Context, provider SecretProvider)
Types ¶
type SecretProvider ¶
type SecretProvider interface {
SaveSecretBinary(ctx context.Context, key string, secret []byte) error
GetSecretBinary(ctx context.Context, key string) ([]byte, error)
GetSecret(ctx context.Context, key string) (string, error)
SaveSecret(ctx context.Context, key string, data string) error
DeleteSecret(ctx context.Context, key string) error
}
Click to show internal directories.
Click to hide internal directories.