code: func ValidateAuditSink(as *auditregistration.AuditSink) field.ErrorList {
  	allErrs := genericvalidation.ValidateObjectMeta(&as.ObjectMeta, false, genericvalidation.NameIsDNSSubdomain, field.NewPath("metadata"))
  	allErrs = append(allErrs, ValidateAuditSinkSpec(as.Spec, field.NewPath("spec"))...)
  	return allErrs
  }
docs: // ValidateAuditSink validates the AuditSinks