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 that will run a Worker as configured.
Types ¶
type CAASBroker ¶
type CAASBroker interface {
EnsureImageRepoSecret(docker.ImageRepoDetails) error
}
type Config ¶
type Config struct { ModelTag names.ModelTag Facade Facade Broker CAASBroker Logger Logger Clock clock.Clock RegistryFunc func(docker.ImageRepoDetails) (registry.Registry, error) }
Config holds the configuration and dependencies for a worker.
type Facade ¶
type Facade interface {
ControllerConfig() (controller.Config, error)
}
type Logger ¶
type Logger interface { Debugf(string, ...interface{}) Infof(string, ...interface{}) Errorf(string, ...interface{}) Warningf(string, ...interface{}) Tracef(string, ...interface{}) Child(string) loggo.Logger }
Logger represents the methods used by the worker to log details.
type ManifoldConfig ¶
type ManifoldConfig struct { APICallerName string BrokerName string NewFacade func(base.APICaller) (Facade, error) NewWorker func(Config) (worker.Worker, error) Logger Logger Clock clock.Clock }
ManifoldConfig describes how to configure and construct a Worker, and what registered resources it may depend upon.
func (ManifoldConfig) Validate ¶
func (config ManifoldConfig) Validate() error
Validate is called by start to check for bad configuration.
Click to show internal directories.
Click to hide internal directories.