Пример #1
0
func mountFromConfig(name string, values map[string]interface{}) (Resource, error) {
	mount := &MountConfig{}
	return mount, configtf.Transform(name, values, mount)
}
Пример #2
0
func composeFromConfig(name string, values map[string]interface{}) (Resource, error) {
	compose := &ComposeConfig{Project: "{unique}", StopGrace: 5}
	return compose, configtf.Transform(name, values, compose)
}
Пример #3
0
func envFromConfig(name string, values map[string]interface{}) (Resource, error) {
	cnf := &EnvConfig{}
	return cnf, configtf.Transform(name, values, cnf)
}
Пример #4
0
// NewMetaConfig returns a new MetaConfig from config values
func NewMetaConfig(name string, values map[string]interface{}) (*MetaConfig, error) {
	meta := &MetaConfig{}
	return meta, configtf.Transform(name, values, meta)
}
Пример #5
0
func jobFromConfig(name string, values map[string]interface{}) (Resource, error) {
	cmd := &JobConfig{}
	return cmd, configtf.Transform(name, values, cmd)
}
Пример #6
0
func aliasFromConfig(name string, values map[string]interface{}) (Resource, error) {
	alias := &AliasConfig{}
	return alias, configtf.Transform(name, values, alias)
}
Пример #7
0
func imageFromConfig(name string, values map[string]interface{}) (Resource, error) {
	image := NewImageConfig()
	return image, configtf.Transform(name, values, image)
}