func ParseType(value string) (Type, error) {
	for rt, str := range types {
		if value == str {
			return rt, nil
		}
	}
	return typeUnknown, errors.Errorf("unsupported resource type %q", value)
}
// ParseType converts a string to a Type. If the given value does not
// match a recognized type then an error is returned.
ParseType converts a string to a Type. If the given value does not
match a recognized type then an error is returned.
// ParseType converts a string to a Type . If the given value does not // match a recognized type then an error is returned .
func ParseType(value string) (Type, error) {
	for rt, str := range types {
		if value == str {
			return rt, nil
		}
	}
	return typeUnknown, errors.Errorf("unsupported resource type %q", value)
}
func ParseType ( value string ) ( Type , error ) { for rt , str := range types { if value == str { return rt , nil } } return typeUnknown , errors . Errorf ( " " , value ) }
ParseType converts a string to a Type.
ParseType converts a string to a Type .