func (s *S) SetUpSuite(c *check.C) { // if aws_acc == "" || aws_sec == "" { c.Skip("-R53 (aws access/secret keys) not provided") // } cf := dns.NewConfig() cf.AccessKey = os.Getenv("AWS_ACCESS_KEY") cf.SecretKey = os.Getenv("AWS_SECRET_KEY") s.cf = cf }
// 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 }