func ParseModels(data []byte) (map[string]*ControllerModels, error) {
	var result modelsCollection
	err := yaml.Unmarshal(data, &result)
	if err != nil {
		return nil, errors.Annotate(err, "cannot unmarshal models")
	}
	return result.ControllerModels, nil
}
// ParseModels parses the given YAML bytes into models metadata.
ParseModels parses the given YAML bytes into models metadata.
// ParseModels parses the given YAML bytes into models metadata .
func ParseModels(data []byte) (map[string]*ControllerModels, error) {
	var result modelsCollection
	err := yaml.Unmarshal(data, &result)
	if err != nil {
		return nil, errors.Annotate(err, "cannot unmarshal models")
	}
	return result.ControllerModels, nil
}
func ParseModels ( data [ ] byte ) ( map [ string ] * ControllerModels , error ) { var result modelsCollection err := yaml . Unmarshal ( data , & result ) if err != nil { return nil , errors . Annotate ( err , " " ) } return result . ControllerModels , nil }
ParseModels parses the given YAML bytes into models metadata.
ParseModels parses the given YAML bytes into models metadata .