func (s *ApiManifoldSuite) SetUpTest(c *gc.C) { s.IsolationSuite.SetUpTest(c) s.Stub = testing.Stub{} s.worker = &dummyWorker{} s.manifold = engine.ApiManifold(engine.ApiManifoldConfig{ APICallerName: "api-caller-name", }, s.newWorker) }
// Manifold returns a dependency manifold that runs a logger // worker, using the resource names defined in the supplied config. func Manifold(config ManifoldConfig) dependency.Manifold { typedConfig := engine.ApiManifoldConfig{ APICallerName: config.APICallerName, } return engine.ApiManifold(typedConfig, config.newWorker) }
// Manifold returns a Manifold that encapsulates the firewaller worker. func Manifold(config ManifoldConfig) dependency.Manifold { return engine.ApiManifold( engine.ApiManifoldConfig(config), manifoldStart, ) }
// Manifold returns a dependency.Manifold that runs an applicationscaler worker. func Manifold(config ManifoldConfig) dependency.Manifold { return engine.ApiManifold( engine.ApiManifoldConfig{config.APICallerName}, config.start, ) }