// Manifold returns a dependency.Manifold as configured. func Manifold(config ManifoldConfig) dependency.Manifold { typedConfig := util.AgentApiManifoldConfig{ AgentName: config.AgentName, APICallerName: config.APICallerName, } return util.AgentApiManifold(typedConfig, config.start) }
// MachineManifold returns a dependency.Manifold that runs a storage provisioner. func MachineManifold(config MachineManifoldConfig) dependency.Manifold { typedConfig := util.AgentApiManifoldConfig{ AgentName: config.AgentName, APICallerName: config.APICallerName, } return util.AgentApiManifold(typedConfig, config.newWorker) }
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 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 { typedConfig := util.AgentApiManifoldConfig{ AgentName: config.AgentName, APICallerName: config.APICallerName, } manifold := util.AgentApiManifold(typedConfig, config.start) manifold.Output = config.output return manifold }
// Manifold returns a dependency manifold that runs a diskmanager worker, // using the resource names defined in the supplied config. func Manifold(config ManifoldConfig) dependency.Manifold { typedConfig := util.AgentApiManifoldConfig(config) return util.AgentApiManifold(typedConfig, newWorker) }