auditconfigupdater

package
v0.0.0-...-8ff1004 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

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 to run an auditconfigupdater.

func New

func New(source ConfigSource, initial auditlog.Config, logFactory AuditLogFactory) (worker.Worker, error)

New returns a worker that will keep an up-to-date audit log config.

Types

type AuditLogFactory

type AuditLogFactory func(auditlog.Config) auditlog.AuditLog

AuditLogFactory is a function that will return an audit log given config.

type ConfigSource

type ConfigSource interface {
	WatchControllerConfig() state.NotifyWatcher
	ControllerConfig() (controller.Config, error)
}

ConfigSource lets us get notifications of changes to controller configuration, and then get the changed config. (Primary implementation is State.)

type ManifoldConfig

type ManifoldConfig struct {
	AgentName string
	StateName string
	NewWorker func(ConfigSource, auditlog.Config, AuditLogFactory) (worker.Worker, error)
}

ManifoldConfig holds the information needed to run an auditconfigupdater in a dependency.Engine.

func (ManifoldConfig) Validate

func (config ManifoldConfig) Validate() error

Validate validates the manifold configuration.

Jump to

Keyboard shortcuts

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