Documentation
¶
Index ¶
- func MakeMapList(sts *spec.Schema, items []interface{}) (rv common.MapList)
- func SchemaDeclType(s *spec.Schema, isResourceRoot bool) *apiservercel.DeclType
- func UnstructuredToVal(unstructured any, schema *spec.Schema) ref.Val
- type Schema
- func (s *Schema) AdditionalProperties() common.SchemaOrBool
- func (s *Schema) AllOf() []common.Schema
- func (s *Schema) AnyOf() []common.Schema
- func (s *Schema) Default() any
- func (s *Schema) Enum() []any
- func (s *Schema) Format() string
- func (s *Schema) IsExclusiveMaximum() bool
- func (s *Schema) IsExclusiveMinimum() bool
- func (s *Schema) IsXEmbeddedResource() bool
- func (s *Schema) IsXIntOrString() bool
- func (s *Schema) IsXPreserveUnknownFields() bool
- func (s *Schema) Items() common.Schema
- func (s *Schema) MaxItems() *int64
- func (s *Schema) MaxLength() *int64
- func (s *Schema) MaxProperties() *int64
- func (s *Schema) Maximum() *float64
- func (s *Schema) MinItems() *int64
- func (s *Schema) MinLength() *int64
- func (s *Schema) MinProperties() *int64
- func (s *Schema) Minimum() *float64
- func (s *Schema) MultipleOf() *float64
- func (s *Schema) Not() common.Schema
- func (s *Schema) Nullable() bool
- func (s *Schema) OneOf() []common.Schema
- func (s *Schema) Pattern() string
- func (s *Schema) Properties() map[string]common.Schema
- func (s *Schema) Required() []string
- func (s *Schema) Type() string
- func (s *Schema) UniqueItems() bool
- func (s *Schema) WithTypeAndObjectMeta() common.Schema
- func (s *Schema) XListMapKeys() []string
- func (s *Schema) XListType() string
- func (s *Schema) XMapType() string
- func (s *Schema) XValidations() []common.ValidationRule
- type SchemaOrBool
- type ValidationRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeMapList ¶
func MakeMapList(sts *spec.Schema, items []interface{}) (rv common.MapList)
func SchemaDeclType ¶
func SchemaDeclType(s *spec.Schema, isResourceRoot bool) *apiservercel.DeclType
func UnstructuredToVal ¶
func UnstructuredToVal(unstructured any, schema *spec.Schema) ref.Val
Types ¶
type Schema ¶
type Schema struct {
Schema *spec.Schema
}
func (*Schema) AdditionalProperties ¶
func (s *Schema) AdditionalProperties() common.SchemaOrBool
func (*Schema) IsExclusiveMaximum ¶ added in v0.29.0
func (s *Schema) IsExclusiveMaximum() bool
func (*Schema) IsExclusiveMinimum ¶ added in v0.29.0
func (s *Schema) IsExclusiveMinimum() bool
func (*Schema) IsXEmbeddedResource ¶
func (s *Schema) IsXEmbeddedResource() bool
func (*Schema) IsXIntOrString ¶
func (s *Schema) IsXIntOrString() bool
func (*Schema) IsXPreserveUnknownFields ¶
func (s *Schema) IsXPreserveUnknownFields() bool
func (*Schema) MaxProperties ¶
func (s *Schema) MaxProperties() *int64
func (*Schema) MinProperties ¶ added in v0.29.0
func (s *Schema) MinProperties() *int64
func (*Schema) MultipleOf ¶ added in v0.29.0
func (s *Schema) MultipleOf() *float64
func (*Schema) Properties ¶
func (s *Schema) Properties() map[string]common.Schema
func (*Schema) UniqueItems ¶ added in v0.29.0
func (s *Schema) UniqueItems() bool
func (*Schema) WithTypeAndObjectMeta ¶
func (s *Schema) WithTypeAndObjectMeta() common.Schema
func (*Schema) XListMapKeys ¶
func (s *Schema) XListMapKeys() []string
func (*Schema) XValidations ¶ added in v0.29.0
func (s *Schema) XValidations() []common.ValidationRule
type SchemaOrBool ¶
type SchemaOrBool struct {
SchemaOrBool *spec.SchemaOrBool
}
type ValidationRule ¶ added in v0.29.0
type ValidationRule struct {
RuleField string `json:"rule"`
MessageField string `json:"message"`
MessageExpressionField string `json:"messageExpression"`
PathField string `json:"fieldPath"`
}
func (ValidationRule) MessageExpression ¶ added in v0.29.0
func (v ValidationRule) MessageExpression() string
Click to show internal directories.
Click to hide internal directories.