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) Default() any
- func (s *Schema) Enum() []any
- func (s *Schema) Format() string
- 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) Nullable() bool
- func (s *Schema) Properties() map[string]common.Schema
- func (s *Schema) Required() []string
- func (s *Schema) Type() string
- func (s *Schema) WithTypeAndObjectMeta() common.Schema
- func (s *Schema) XListMapKeys() []string
- func (s *Schema) XListType() string
- type SchemaOrBool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SchemaDeclType ¶
func SchemaDeclType(s *spec.Schema, isResourceRoot bool) *apiservercel.DeclType
Types ¶
type Schema ¶
func (*Schema) AdditionalProperties ¶
func (s *Schema) AdditionalProperties() common.SchemaOrBool
func (*Schema) IsXEmbeddedResource ¶
func (*Schema) IsXIntOrString ¶
func (*Schema) IsXPreserveUnknownFields ¶
func (*Schema) MaxProperties ¶
func (*Schema) WithTypeAndObjectMeta ¶
func (*Schema) XListMapKeys ¶
type SchemaOrBool ¶
type SchemaOrBool struct {
SchemaOrBool *spec.SchemaOrBool
}
func (*SchemaOrBool) Allows ¶
func (sb *SchemaOrBool) Allows() bool
func (*SchemaOrBool) Schema ¶
func (sb *SchemaOrBool) Schema() common.Schema
Click to show internal directories.
Click to hide internal directories.