kubernetes/staging/src/k8s.io/kubectl/pkg/validation/validation.go

type schemaValidation

// NewSchemaValidation creates a new Schema that can be used
// to validate objects.
func NewSchemaValidation(resourcesGetter openapi.OpenAPIResourcesGetter) Schema {}

// ValidateBytes will validates the object against using the Resources
// object.
func (v *schemaValidation) ValidateBytes(data []byte) error {}

func (v *schemaValidation) validateList(object interface{}

func (v *schemaValidation) validateResource(obj interface{}

func parse(data []byte) (interface{}

func getObjectKind(object interface{}