Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetObjectKind ¶ added in v0.24.0
func GetObjectKind(object interface{}) (schema.GroupVersionKind, []error)
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.
Click to show internal directories.
Click to hide internal directories.