Example #1
0
// Manifold returns a dependency manifold that runs an event filter worker, using
// the resource names defined in the supplied config.
func Manifold(config ManifoldConfig) dependency.Manifold {
	manifold := util.AgentApiManifold(util.AgentApiManifoldConfig(config), newWorker)
	manifold.Output = outputFunc
	return manifold
}
Example #2
0
// Manifold returns a dependency manifold that runs an rsyslog
// worker, using the resource names defined in the supplied config.
func Manifold(config ManifoldConfig) dependency.Manifold {
	return util.AgentApiManifold(util.AgentApiManifoldConfig(config), newWorker)
}
Example #3
0
// Manifold returns a dependency manifold that runs a hook retry strategy worker,
// using the agent name and the api connection resources named in the supplied config.
func Manifold(config ManifoldConfig) dependency.Manifold {
	manifold := util.AgentApiManifold(util.AgentApiManifoldConfig(config.AgentApiManifoldConfig), config.start)
	manifold.Output = config.output
	return manifold
}