示例#1
0
// DefaultConfig returns a pointer to a populated Config object with sensible
// default values.
func DefaultConfig() *Config {
	config := Config{
		Config: common.DefaultConfig(),
	}

	LoadEnvironment(&config)

	return &config
}
示例#2
0
// DefaultConfig returns a pointer to a populated Config object with sensible
// default values.
func DefaultConfig() *Config {
	hostname, _ := os.Hostname()

	config := Config{
		Config:      common.DefaultConfig(),
		Name:        hostname,
		Deployments: []DeploymentConfig{},
	}

	LoadEnvironment(&config)

	return &config
}