func validateResourceName(value string, fldPath *field.Path) field.ErrorList {
	allErrs := field.ErrorList{}
	for _, msg := range validation.IsQualifiedName(value) {
		allErrs = append(allErrs, field.Invalid(fldPath, value, msg))
	}
	if len(allErrs) != 0 {
		return allErrs
	}

	if len(strings.Split(value, "/")) == 1 {
		if !helper.IsStandardResourceName(value) {
			return append(allErrs, field.Invalid(fldPath, value, "must be a standard resource type or fully qualified"))
		}
	}

	return allErrs
}
// Validate compute resource typename.
// Refer to docs/design/resources.md for more details.
Validate compute resource typename.
Refer to docs/design/resources.md for more details.
// Validate compute resource typename . // Refer to docs / design / resources . md for more details .
func validateResourceName(value string, fldPath *field.Path) field.ErrorList {
	allErrs := field.ErrorList{}
	for _, msg := range validation.IsQualifiedName(value) {
		allErrs = append(allErrs, field.Invalid(fldPath, value, msg))
	}
	if len(allErrs) != 0 {
		return allErrs
	}
	if len(strings.Split(value, "/")) == 1 {
		if !helper.IsStandardResourceName(value) {
			return append(allErrs, field.Invalid(fldPath, value, "must be a standard resource type or fully qualified"))
		}
	}
	return allErrs
}
func validateResourceName ( value string , fldPath * field . Path ) field . ErrorList { allErrs := field . ErrorList { } for _ , msg := range validation . IsQualifiedName ( value ) { allErrs = append ( allErrs , field . Invalid ( fldPath , value , msg ) ) } if len ( allErrs ) != 0 { return allErrs } if len ( strings . Split ( value , " " ) ) == 1 { if ! helper . IsStandardResourceName ( value ) { return append ( allErrs , field . Invalid ( fldPath , value , " " ) ) } } return allErrs }
Validate compute resource typename.
Validate compute resource typename .