func (info *ImageInfo) UnmarshalYAML(unmarshal func(interface{}) error) error {
	var s string
	err := unmarshal(&s)
	if err != nil {
		return errors.Trace(err)
	}
	info.version, err = version.Parse(s)
	if err != nil {
		return errors.Trace(err)
	}
	return nil
}
// UnmarshalYAML implements the yaml.Unmarshaller interface.
UnmarshalYAML implements the yaml.Unmarshaller interface.
// UnmarshalYAML implements the yaml . Unmarshaller interface .
func (info *ImageInfo) UnmarshalYAML(unmarshal func(interface{}) error) error {
	var s string
	err := unmarshal(&s)
	if err != nil {
		return errors.Trace(err)
	}
	info.version, err = version.Parse(s)
	if err != nil {
		return errors.Trace(err)
	}
	return nil
}
func ( info * ImageInfo ) UnmarshalYAML ( unmarshal func ( interface { } ) error ) error { var s string err := unmarshal ( & s ) if err != nil { return errors . Trace ( err ) } info . version , err = version . Parse ( s ) if err != nil { return errors . Trace ( err ) } return nil }
UnmarshalYAML implements the yaml.Unmarshaller interface.
UnmarshalYAML implements the yaml . Unmarshaller interface .