MCPcopy
hub / github.com/kubernetes/kubectl / Schema

Interface Schema

pkg/validation/schema.go:32–34  ·  view source on GitHub ↗

Schema is an interface that knows how to validate an API object serialized to a byte array.

Source from the content-addressed store, hash-verified

30
31// Schema is an interface that knows how to validate an API object serialized to a byte array.
32type Schema interface {
33 ValidateBytes(data []byte) error
34}
35
36// NullSchema always validates bytes.
37type NullSchema struct{}

Callers 6

validation_test.goFile · 0.65
ValidateBytesMethod · 0.65
ValidateBytesMethod · 0.65
TestConjunctiveSchemaFunction · 0.65
TestParamVerifyingSchemaFunction · 0.65
RunMethod · 0.65

Implementers 5

NullSchemapkg/validation/schema.go
NoDoubleKeySchemapkg/validation/schema.go
paramVerifyingSchemapkg/validation/schema.go
AlwaysInvalidSchemapkg/validation/schema_test.go
schemaValidationpkg/validation/validation.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…