Documentation
¶
Index ¶
- Constants
- func Builder(ctx context.Context, c any) (secrets.Keeper, error)
- func Validator(ctx context.Context, c any) error
- type Config
- type Seq
- func (s *Seq) CopySecret(ctx context.Context, id string, location string) (secrets.Secret, error)
- func (s *Seq) DeleteSecret(ctx context.Context, id string) error
- func (s *Seq) GetSecret(ctx context.Context, id string) (secrets.Secret, error)
- func (s *Seq) GetSecretsByName(ctx context.Context, name string) ([]secrets.Secret, error)
- func (s *Seq) ListLocations(ctx context.Context) ([]string, error)
- func (s *Seq) ListSecrets(ctx context.Context, location string) ([]string, error)
- func (s *Seq) MoveSecret(ctx context.Context, id string, location string) (secrets.Secret, error)
- func (s *Seq) SetSecret(ctx context.Context, sec secrets.Secret) (secrets.Secret, error)
Constants ¶
View Source
const ConfigType = "seq"
ConfigType is the name of the config type for the seq secret keeper.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // Keepers is the list of keepers to use for the seq keeper. Keepers []string `mapstructure:"keepers" yaml:"keepers"` }
Config is the configuration for the seq secret keeper.
type Seq ¶
type Seq struct {
// contains filtered or unexported fields
}
Seq is a Keeper that gets secrets from the first Keeper that returns it.
func (*Seq) CopySecret ¶
func (s *Seq) CopySecret( ctx context.Context, id string, location string, ) (secrets.Secret, error)
CopySecret gets the secret from any of the Keepers in the Seq and makes a copy of it in the first Keeper at the new location.
func (*Seq) DeleteSecret ¶
DeleteSecret deletes the secret from all Keepers.
func (*Seq) GetSecretsByName ¶
GetSecretsByName returns all secrets with the given name from all Keepers.
func (*Seq) ListLocations ¶
ListLocations returns the list of locations from all Keepers.
func (*Seq) ListSecrets ¶
ListSecrets returns the list of secrets from all Keepers in the named location.
Click to show internal directories.
Click to hide internal directories.