package validation
import "k8s.io/kubectl/pkg/util/openapi/validation"
Index ¶
- func GetObjectKind(object interface{}) (schema.GroupVersionKind, []error)
- func Parse(data []byte) (interface{}, error)
- type SchemaValidation
Functions ¶
func GetObjectKind ¶
func GetObjectKind(object interface{}) (schema.GroupVersionKind, []error)
func Parse ¶
Types ¶
type SchemaValidation ¶
type SchemaValidation struct {
// contains filtered or unexported fields
}
SchemaValidation validates the object against an OpenAPI schema.
func NewSchemaValidation ¶
func NewSchemaValidation(resources openapi.Resources) *SchemaValidation
NewSchemaValidation creates a new SchemaValidation that can be used to validate objects.
func (*SchemaValidation) ValidateBytes ¶
func (v *SchemaValidation) ValidateBytes(data []byte) error
ValidateBytes will validates the object against using the Resources object.
Source Files ¶
validation.go
- Version
- v0.24.6-rc.0
- Published
- Sep 14, 2022
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 2 hours ago –
Tools for package owners.