예제 #1
0
파일: agent_test.go 프로젝트: bac/juju
func (s *AgentManifoldSuite) SetUpTest(c *gc.C) {
	s.IsolationSuite.SetUpTest(c)
	s.Stub = testing.Stub{}
	s.worker = &dummyWorker{}
	s.manifold = engine.AgentManifold(engine.AgentManifoldConfig{
		AgentName: "agent-name",
	}, s.newWorker)
}
예제 #2
0
파일: manifold.go 프로젝트: bac/juju
// Manifold returns a dependency.Manifold that extracts the metrics
// spool directory path from the agent.
func Manifold(config ManifoldConfig) dependency.Manifold {
	manifold := engine.AgentManifold(engine.AgentManifoldConfig(config), newWorker)
	manifold.Output = outputFunc
	return manifold
}