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(context.Context, docker.ImageRepoDetails) error
}
type Config ¶
type Config struct { ModelTag names.ModelTag Facade Facade Broker CAASBroker Logger 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(context.Context) (controller.Config, error) WatchControllerConfig(context.Context) (watcher.StringsWatcher, error) }
type ManifoldConfig ¶
type ManifoldConfig struct { APICallerName string BrokerName string NewFacade func(base.APICaller) (Facade, error) NewWorker func(Config) (worker.Worker, error) Logger 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.