func (s *AgentApiManifoldSuite) SetUpTest(c *gc.C) { s.IsolationSuite.SetUpTest(c) s.Stub = testing.Stub{} s.worker = &dummyWorker{} s.manifold = util.AgentApiManifold(util.AgentApiManifoldConfig{ AgentName: "agent-name", APICallerName: "api-caller-name", }, s.newWorker) }
// 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) }
// 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 }
// 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 }