Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SecretProvider ¶
type SecretProvider interface { Get(key string) (string, error) Set(key, value string) (string, error) }
SecretProvider is an interface for getting and setting secrets.
type SecretStore ¶
type SecretStore struct {
// contains filtered or unexported fields
}
SecretStore is a store of secret providers.
func NewDefaultSecretStore ¶
func NewDefaultSecretStore() SecretStore
NewDefaultSecretStore returns a new SecretStore with the default providers.
func NewSecretStore ¶
func NewSecretStore(store map[Provider]func(*slog.Logger) (SecretProvider, error)) SecretStore
NewSecretStore returns a new SecretStore with the given providers.
func (SecretStore) NewClient ¶
func (s SecretStore) NewClient(logger *slog.Logger, p Provider) (SecretProvider, error)
NewClient returns a new SecretProvider client for the given provider.
Click to show internal directories.
Click to hide internal directories.