Beispiel #1
0
func mountFromConfig(name string, values map[string]interface{}) (Resource, error) {
	mount := &MountConfig{}
	return mount, configtf.Transform(name, values, mount)
}
Beispiel #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)
}
Beispiel #3
0
func envFromConfig(name string, values map[string]interface{}) (Resource, error) {
	cnf := &EnvConfig{}
	return cnf, configtf.Transform(name, values, cnf)
}
Beispiel #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)
}
Beispiel #5
0
func jobFromConfig(name string, values map[string]interface{}) (Resource, error) {
	cmd := &JobConfig{}
	return cmd, configtf.Transform(name, values, cmd)
}
Beispiel #6
0
func aliasFromConfig(name string, values map[string]interface{}) (Resource, error) {
	alias := &AliasConfig{}
	return alias, configtf.Transform(name, values, alias)
}
Beispiel #7
0
func imageFromConfig(name string, values map[string]interface{}) (Resource, error) {
	image := NewImageConfig()
	return image, configtf.Transform(name, values, image)
}