Debian Codegraph @

pkg/util/proto/validation/validation.go

raw symbols SCIP
1 /*
2 Copyright 2017 The Kubernetes Authors.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17 package validationscip-go gomod k8s.io/kube-openapi . `k8s.io/kube-openapi/pkg/util/proto/validation`/
18
19 import (
20 "k8s.io/kube-openapi/pkg/util/protoscip-go gomod k8s.io/kube-openapi . `k8s.io/kube-openapi/pkg/util/proto`/"
21 )
22
23 func ValidateModelscip-go gomod k8s.io/kube-openapi . `k8s.io/kube-openapi/pkg/util/proto/validation`/ValidateModel().(obj interface{}, schema protoscip-go gomod k8s.io/kube-openapi . `k8s.io/kube-openapi/pkg/util/proto`/.Schemascip-go gomod k8s.io/kube-openapi . `k8s.io/kube-openapi/pkg/util/proto`/Schema#, name string) []error {
24 rootValidation, err := itemFactoryscip-go gomod k8s.io/kube-openapi . `k8s.io/kube-openapi/pkg/util/proto/validation`/itemFactory().(protoscip-go gomod k8s.io/kube-openapi . `k8s.io/kube-openapi/pkg/util/proto`/.NewPathscip-go gomod k8s.io/kube-openapi . `k8s.io/kube-openapi/pkg/util/proto`/NewPath().(name), obj)
25 if err != nil {
26 return []error{err}
27 }
28 schema.Acceptscip-go gomod k8s.io/kube-openapi . `k8s.io/kube-openapi/pkg/util/proto`/Schema#Accept.(rootValidation)
29 return rootValidation.Errorsscip-go gomod k8s.io/kube-openapi . `k8s.io/kube-openapi/pkg/util/proto/validation`/validationItem#Errors.()
30 }