Setup generators in factory

This commit is contained in:
kargakis
2015-05-05 11:15:01 +02:00
parent bd3d853242
commit c9e79a3c28
4 changed files with 19 additions and 13 deletions

View File

@@ -39,13 +39,6 @@ type Generator interface {
ParamNames() []GeneratorParam
}
// Generators is a global list of known generators.
// TODO: Dynamically create this from a list of template files?
var Generators map[string]Generator = map[string]Generator{
"run-container/v1": BasicReplicationController{},
"service/v1": ServiceGenerator{},
}
// ValidateParams ensures that all required params are present in the params map
func ValidateParams(paramSpec []GeneratorParam, params map[string]string) error {
for ix := range paramSpec {