예제 #1
0
// NewConfig returns an instance of Config with reasonable defaults.
func NewConfig() *Config {
	c := &Config{}
	c.Meta = meta.NewConfig()
	c.Deployd = deployd.NewConfig()
	c.HTTPD = httpd.NewConfig()
	c.Docker = docker.NewConfig()
	c.Bridges = docker.NewBridgeConfig()
	c.Metrics = metricsd.NewConfig()
	c.Events = eventsd.NewConfig()
	c.DNS = dns.NewConfig()
	return c
}
예제 #2
0
func (s *S) SetUpSuite(c *check.C) {
	if os.Getenv(meta.MEGAM_HOME) != "" {
		meta.NewConfig().MkGlobal()
	}
}