secrets

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReasonSecretRotation = "secret_rotation"
	ReasonSecretTTL      = "secret_ttl"
)

Recorded on the resulting audit event

Variables

This section is empty.

Functions

func ConstructSecreter added in v0.13.0

func ConstructSecreter(rawConfig map[string]interface{}, deps secret.SecreterDeps) (secret.Secreter, error)

Types

type AWSSecretsManager

type AWSSecretsManager struct {
	AWSSecretsManagerConfig
	// contains filtered or unexported fields
}

func (*AWSSecretsManager) Check added in v0.12.0

func (s *AWSSecretsManager) Check(ctx context.Context, keys []string) ([]string, error)

func (*AWSSecretsManager) Lookup

func (s *AWSSecretsManager) Lookup(ctx context.Context, key string) (string, string, error)

type AWSSecretsManagerConfig

type AWSSecretsManagerConfig struct {
	Access  string
	Secret  string
	Region  string
	Profile string

	Separator string

	Endpoint string // For non-AWS (e.g. localstack)
}

type AWSSecretsManagerSecreter

type AWSSecretsManagerSecreter struct {
}

func (AWSSecretsManagerSecreter) CheckBatchSize added in v0.12.0

func (s AWSSecretsManagerSecreter) CheckBatchSize() int

func (AWSSecretsManagerSecreter) Initialize

func (AWSSecretsManagerSecreter) InitializeConfig

func (s AWSSecretsManagerSecreter) InitializeConfig() any

func (AWSSecretsManagerSecreter) Name

type Noop

type Noop struct {
	NoopConfig
	// contains filtered or unexported fields
}

func (Noop) Check added in v0.12.0

func (s Noop) Check(_ context.Context, keys []string) ([]string, error)

func (Noop) Lookup

func (s Noop) Lookup(_ context.Context, key string) (string, string, error)

type NoopConfig

type NoopConfig struct {
}

type NoopRegistration

type NoopRegistration struct {
}

func (NoopRegistration) CheckBatchSize added in v0.12.0

func (s NoopRegistration) CheckBatchSize() int

func (NoopRegistration) Initialize

func (s NoopRegistration) Initialize(cfgAny any, deps secret.SecreterDeps) (secret.Secreter, error)

func (NoopRegistration) InitializeConfig

func (s NoopRegistration) InitializeConfig() any

func (NoopRegistration) Name

func (s NoopRegistration) Name() string

Jump to

Keyboard shortcuts

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