Documentation ¶
Overview ¶
Package secretbackendrotate provides a worker for tracking and rotating a secret backend token.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Manifold ¶
func Manifold(config ManifoldConfig) dependency.Manifold
Manifold returns a dependency.Manifold that runs a secretbackendrotate worker.
Types ¶
type Config ¶
type Config struct { SecretBackendManagerFacade SecretBackendManagerFacade Logger logger.Logger Clock clock.Clock }
Config defines the operation of the Worker.
type ManifoldConfig ¶
ManifoldConfig holds dependencies and configuration for a secretbackendrotate worker.
func (ManifoldConfig) Validate ¶
func (c ManifoldConfig) Validate() error
Validate validates a manifold config.
type SecretBackendManagerFacade ¶
type SecretBackendManagerFacade interface { WatchTokenRotationChanges(context.Context) (watcher.SecretBackendRotateWatcher, error) RotateBackendTokens(ctx context.Context, info ...string) error }
SecretBackendManagerFacade instances provide a watcher for secret rotation changes.
Click to show internal directories.
Click to hide internal directories.