kubernetes: k8s.io/kubernetes/pkg/kubectl/cmd/util/openapi/validation Index | Files

package validation

import "k8s.io/kubernetes/pkg/kubectl/cmd/util/openapi/validation"

Index

Package Files

validation.go

type SchemaValidation Uses

type SchemaValidation struct {
    // contains filtered or unexported fields
}

SchemaValidation validates the object against an OpenAPI schema.

func NewSchemaValidation Uses

func NewSchemaValidation(resources openapi.Resources) *SchemaValidation

NewSchemaValidation creates a new SchemaValidation that can be used to validate objects.

func (*SchemaValidation) ValidateBytes Uses

func (v *SchemaValidation) ValidateBytes(data []byte) error

ValidateBytes will validates the object against using the Resources object.

Package validation imports 7 packages (graph) and is imported by 17 packages. Updated 2019-04-03. Refresh now. Tools for package owners.