- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for validateFile (0.16 sec)
-
istioctl/pkg/validate/validate.go
m, _, err := unstructured.NestedStringMap(template, "metadata", "labels") if err != nil { return nil, err } return m, nil } } return nil, nil } func (v *validator) validateFile(path string, istioNamespace *string, defaultNamespace string, reader io.Reader, writer io.Writer, ) (validation.Warning, error) { decoder := yaml.NewDecoder(reader) decoder.SetStrict(true) var errs error
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jan 22 17:58:52 UTC 2024 - 15K bytes - Viewed (0) -
src/net/smtp/smtp.go
// functionality. Higher-level packages exist outside of the standard // library. func SendMail(addr string, a Auth, from string, to []string, msg []byte) error { if err := validateLine(from); err != nil { return err } for _, recp := range to { if err := validateLine(recp); err != nil { return err } } c, err := Dial(addr) if err != nil { return err } defer c.Close()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 11.6K bytes - Viewed (0) -
pkg/registry/rbac/role/strategy.go
} // Validate validates a new Role. Validation must check for a correct signature. func (strategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList { role := obj.(*rbac.Role) return validation.ValidateRole(role) } // WarningsOnCreate returns warnings for the creation of the given object. func (strategy) WarningsOnCreate(ctx context.Context, obj runtime.Object) []string { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 18 14:42:36 UTC 2021 - 3.3K bytes - Viewed (0) -
pkg/apis/rbac/validation/validation.go
// * https://github.com/openshift/origin/blob/388478c40e751c4295dcb9a44dd69e5ac65d0e3b/pkg/api/helpers.go func ValidateRBACName(name string, prefix bool) []string { return path.IsValidPathSegmentName(name) } func ValidateRole(role *rbac.Role) field.ErrorList { allErrs := field.ErrorList{} allErrs = append(allErrs, validation.ValidateObjectMeta(&role.ObjectMeta, true, ValidateRBACName, field.NewPath("metadata"))...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 08 01:48:21 UTC 2022 - 10.4K bytes - Viewed (0) -
subprojects/diagnostics/src/integTest/groovy/org/gradle/api/reporting/model/ModelReportIntegrationTest.groovy
n.setValue(5) n.setThreshold(0.8) } @Defaults void defaultsRule(Numbers n) {} @Mutate void mutateRule(Numbers n) {} @Finalize void finalizeRule(Numbers n) {} @Validate void validateRule(Numbers n) {} } class ClassHolder { static class InnerRules extends RuleSource { @Mutate void mutateRule(Numbers n) {} } } apply plugin: NumberRules
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 13:32:55 UTC 2024 - 22K bytes - Viewed (0) -
pkg/apis/rbac/validation/validation_test.go
} } } } type ValidateRoleTest struct { role rbac.Role wantErr bool errType field.ErrorType field string } func (v ValidateRoleTest) test(t *testing.T) { errs := ValidateRole(&v.role) if len(errs) == 0 { if v.wantErr { t.Fatal("expected validation error") } return } if !v.wantErr { t.Errorf("didn't expect error, got %v", errs) return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 02 07:48:42 UTC 2023 - 14.1K bytes - Viewed (0) -
pkg/apis/admissionregistration/validation/validation.go
return allErrors } var validScopes = sets.NewString( string(admissionregistration.ClusterScope), string(admissionregistration.NamespacedScope), string(admissionregistration.AllScopes), ) func validateRule(rule *admissionregistration.Rule, fldPath *field.Path, allowSubResource bool) field.ErrorList { var allErrors field.ErrorList if len(rule.APIGroups) == 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 56.6K bytes - Viewed (0)