Documentation ¶
Index ¶
- func SecretsManagerFactory(_ *secrets.SecretsManagerConfig, params *secrets.SecretsManagerParams) (secrets.SecretsManager, error)
- type LocalSecretsManager
- func (l *LocalSecretsManager) GetSecret(name string) ([]byte, error)
- func (l *LocalSecretsManager) HasSecret(name string) bool
- func (l *LocalSecretsManager) RemoveSecret(name string) error
- func (l *LocalSecretsManager) SetSecret(name string, value []byte) error
- func (l *LocalSecretsManager) Setup() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SecretsManagerFactory ¶
func SecretsManagerFactory( _ *secrets.SecretsManagerConfig, params *secrets.SecretsManagerParams, ) (secrets.SecretsManager, error)
SecretsManagerFactory implements the factory method
Types ¶
type LocalSecretsManager ¶
type LocalSecretsManager struct {
// contains filtered or unexported fields
}
LocalSecretsManager is a SecretsManager that stores secrets locally on disk
func (*LocalSecretsManager) GetSecret ¶
func (l *LocalSecretsManager) GetSecret(name string) ([]byte, error)
GetSecret gets the local SecretsManager's secret from disk
func (*LocalSecretsManager) HasSecret ¶
func (l *LocalSecretsManager) HasSecret(name string) bool
HasSecret checks if the secret is present on disk
func (*LocalSecretsManager) RemoveSecret ¶
func (l *LocalSecretsManager) RemoveSecret(name string) error
RemoveSecret removes the local SecretsManager's secret from disk
func (*LocalSecretsManager) SetSecret ¶
func (l *LocalSecretsManager) SetSecret(name string, value []byte) error
SetSecret saves the local SecretsManager's secret to disk
func (*LocalSecretsManager) Setup ¶
func (l *LocalSecretsManager) Setup() error
Setup sets up the local SecretsManager
Click to show internal directories.
Click to hide internal directories.