secrets

package
v0.0.0-...-f9aa2b8 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlreadyExistsErr

func AlreadyExistsErr(err error) bool

AlreadyExistsErr will determine if error is caused because the secret already exist

func IsNotFoundErr

func IsNotFoundErr(err error) bool

IsNotFoundErr will determine if error is caused because the secret doesn't exist

func NewSecretManagerStore

func NewSecretManagerStore() *store

Types

type Store

type Store interface {
	GetSecret(ctx context.Context, secretID string) (string, error)
	CreateSecret(ctx context.Context, secretID string, secret []byte) error
	DeleteSecret(ctx context.Context, secretID string) error
}
var Vault Store

Jump to

Keyboard shortcuts

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