local

package
v0.0.0-...-4898c27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL