local

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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