Documentation ¶
Index ¶
- func LoadSchemaFromStrings(primary string, rest ...string) (*gojsonschema.Schema, error)
- func ValidateYAMLString(schema *gojsonschema.Schema, data string) error
- func ValidationErrorFromResult(result *gojsonschema.Result) error
- type FieldValidationError
- type InvalidVersionKindError
- type ValidationError
- type VersionKind
- type VersionKindExpectation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadSchemaFromStrings ¶
func LoadSchemaFromStrings(primary string, rest ...string) (*gojsonschema.Schema, error)
func ValidateYAMLString ¶
func ValidateYAMLString(schema *gojsonschema.Schema, data string) error
func ValidationErrorFromResult ¶
func ValidationErrorFromResult(result *gojsonschema.Result) error
Types ¶
type FieldValidationError ¶
func (*FieldValidationError) Error ¶
func (e *FieldValidationError) Error() string
type InvalidVersionKindError ¶
type InvalidVersionKindError struct {
ExpectedVersion, ExpectedKind string
GotVersion, GotKind string
}
func (*InvalidVersionKindError) Error ¶
func (e *InvalidVersionKindError) Error() string
type ValidationError ¶
type ValidationError struct {
FieldErrors []*FieldValidationError
}
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
type VersionKind ¶
type VersionKindExpectation ¶
func NewVersionKindExpectation ¶
func NewVersionKindExpectation(apiVersion, kind string) *VersionKindExpectation
func (*VersionKindExpectation) NewFromYAMLString ¶
func (vke *VersionKindExpectation) NewFromYAMLString(data string) (*VersionKind, error)
Click to show internal directories.
Click to hide internal directories.