secretrotate

package
v0.0.0-...-b0bff92 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config) (worker.Worker, error)

New returns a Secret Rotation Worker backed by config, or an error.

Types

type Config

type Config struct {
	SecretManagerFacade SecretManagerFacade
	Logger              Logger
	Clock               clock.Clock

	SecretOwner   names.Tag
	RotateSecrets chan<- []string
}

Config defines the operation of the Worker.

func (Config) Validate

func (config Config) Validate() error

Validate returns an error if config cannot drive the Worker.

type Logger

type Logger interface {
	Debugf(string, ...interface{})
	Tracef(string, ...interface{})
}

Logger represents the methods used by the worker to log information.

type SecretManagerFacade

type SecretManagerFacade interface {
	WatchSecretsRotationChanges(ownerTag string) (watcher.SecretRotationWatcher, error)
}

SecretManagerFacade instances provide a watcher for secret rotation changes.

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

Worker fires events when secrets should be rotated.

func (*Worker) Kill

func (w *Worker) Kill()

Kill is defined on worker.Worker.

func (*Worker) Wait

func (w *Worker) Wait() error

Wait is part of the worker.Worker interface.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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