示例#1
0
文件: defaults.go 项目: pulcy/quark
func instanceConfigDefaults(ic providers.InstanceConfig) providers.InstanceConfig {
	if ic.RegionID == "" {
		ic.RegionID = regionAmsterdamID
	}
	if ic.ImageID == "" {
		ic.ImageID = coreosStableID
	}
	if ic.TypeID == "" {
		ic.TypeID = plan768MBID
	}
	return ic
}
示例#2
0
文件: defaults.go 项目: pulcy/quark
func (vp *scalewayProvider) instanceConfigDefaults(ic providers.InstanceConfig) providers.InstanceConfig {
	if ic.RegionID == "" {
		ic.RegionID = vp.Region
	}
	if ic.ImageID == "" {
		ic.ImageID = dockerImageID
	}
	if ic.TypeID == "" {
		ic.TypeID = commercialTypeVC1
	}
	return ic
}
示例#3
0
文件: defaults.go 项目: pulcy/quark
func instanceConfigDefaults(ic providers.InstanceConfig) providers.InstanceConfig {
	if ic.RegionID == "" {
		ic.RegionID = "local"
	}
	if ic.ImageID == "" {
		ic.ImageID = "coreos-stable"
	}
	if ic.TypeID == "" {
		ic.TypeID = "n/a"
	}
	return ic
}