- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,659 for Validate2 (0.3 sec)
-
internal/bucket/lifecycle/transition.go
var trw transitionWrapper err := d.DecodeElement(&trw, &startElement) if err != nil { return err } *t = Transition(trw) t.set = true return nil } // Validate - validates the "Transition" element func (t Transition) Validate() error { if !t.set { return nil } if !t.IsDateNull() && t.Days > 0 { return errTransitionInvalid } if t.StorageClass == "" {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jan 10 17:07:49 UTC 2022 - 5.1K bytes - Viewed (0) -
internal/bucket/versioning/versioning.go
// Requires versioning to be enabled ExcludedPrefixes []ExcludedPrefix `xml:",omitempty"` ExcludeFolders bool `xml:",omitempty"` } // Validate - validates the versioning configuration func (v Versioning) Validate() error { // Not supported yet // switch v.MFADelete { // case Enabled, Disabled: // default: // return Errorf("unsupported MFADelete state %s", v.MFADelete) // }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 4.6K bytes - Viewed (0) -
internal/bucket/lifecycle/and.go
// isEmpty returns true if Tags field is null func (a And) isEmpty() bool { return len(a.Tags) == 0 && !a.Prefix.set && a.ObjectSizeGreaterThan == 0 && a.ObjectSizeLessThan == 0 } // Validate - validates the And field func (a And) Validate() error { // > This is used in a Lifecycle Rule Filter to apply a logical AND to two or more predicates. // ref: https://docs.aws.amazon.com/AmazonS3/latest/API/API_LifecycleRuleAndOperator.html
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 2.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/ratcheting.go
// the explored nodes of the object tree. func (r *ratchetingValueValidator) Validate(new interface{}) *validate.Result { opts := append([]validate.Option{ r.getValidateOption(), }, r.options...) s := validate.NewSchemaValidator(r.schema, r.root, r.path, r.knownFormats, opts...) res := s.Validate(r.correlation.Value) if res.IsValid() { return res }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 26 21:17:17 UTC 2024 - 7.7K bytes - Viewed (0) -
pkg/registry/networking/ingress/strategy.go
if !apiequality.Semantic.DeepEqual(oldIngress.Spec, newIngress.Spec) { newIngress.Generation = oldIngress.Generation + 1 } } // Validate validates ingresses on create. func (ingressStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList { ingress := obj.(*networking.Ingress) return validation.ValidateIngressCreate(ingress) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 01:42:41 UTC 2023 - 6.1K bytes - Viewed (0) -
pkg/registry/scheduling/priorityclass/strategy.go
// PrepareForUpdate clears fields that are not allowed to be set by end users on update. func (priorityClassStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) {} // Validate validates a new PriorityClass. func (priorityClassStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList { pc := obj.(*scheduling.PriorityClass) return validation.ValidatePriorityClass(pc) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 08 10:11:23 UTC 2022 - 3K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go
} } // Validate validates all x-kubernetes-validations rules in Validator against obj and returns any errors. // If the validation rules exceed the costBudget, subsequent evaluations will be skipped, the list of errs returned will not be empty, and a negative remainingBudget will be returned. // Most callers can ignore the returned remainingBudget value unless another validate call is going to be made
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 18:21:31 UTC 2024 - 32.2K bytes - Viewed (0) -
cmd/bucket-handlers_test.go
} // ExecObjectLayerAPIAnonTest - Calls the HTTP API handler using the anonymous request, validates the ErrAccessDeniedResponse, // sets the bucket policy using the policy statement generated from `getReadOnlyBucketStatement` so that the // unsigned request goes through and its validated again.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:50:49 UTC 2024 - 39.8K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/cmd/server/options/options.go
o.APIEnablement.AddFlags(fs) } // Validate validates the apiextensions-apiserver options. func (o CustomResourceDefinitionsServerOptions) Validate() error { errors := []error{} errors = append(errors, o.ServerRunOptions.Validate()...) errors = append(errors, o.RecommendedOptions.Validate()...) errors = append(errors, o.APIEnablement.Validate(apiserver.Scheme)...) return utilerrors.NewAggregate(errors) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 17:57:37 UTC 2024 - 6K bytes - Viewed (0) -
pkg/registry/core/endpoint/strategy.go
} // PrepareForUpdate clears fields that are not allowed to be set by end users on update. func (endpointsStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) { } // Validate validates a new endpoints. func (endpointsStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList { return validation.ValidateEndpointsCreate(obj.(*api.Endpoints)) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 18 14:42:36 UTC 2021 - 2.7K bytes - Viewed (0)