package openapi
import "k8s.io/apiserver/pkg/cel/openapi"
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
Functions ¶
func MakeMapList ¶
func SchemaDeclType ¶
func SchemaDeclType(s *spec.Schema, isResourceRoot bool) *apiservercel.DeclType
func UnstructuredToVal ¶
Types ¶
type Schema ¶
func (*Schema) AdditionalProperties ¶
func (s *Schema) AdditionalProperties() common.SchemaOrBool
func (*Schema) AllOf ¶
func (*Schema) AnyOf ¶
func (*Schema) Default ¶
func (*Schema) Enum ¶
func (*Schema) Format ¶
func (*Schema) IsExclusiveMaximum ¶
func (*Schema) IsExclusiveMinimum ¶
func (*Schema) IsXEmbeddedResource ¶
func (*Schema) IsXIntOrString ¶
func (*Schema) IsXPreserveUnknownFields ¶
func (*Schema) Items ¶
func (*Schema) MaxItems ¶
func (*Schema) MaxLength ¶
func (*Schema) MaxProperties ¶
func (*Schema) Maximum ¶
func (*Schema) MinItems ¶
func (*Schema) MinLength ¶
func (*Schema) MinProperties ¶
func (*Schema) Minimum ¶
func (*Schema) MultipleOf ¶
func (*Schema) Not ¶
func (*Schema) Nullable ¶
func (*Schema) OneOf ¶
func (*Schema) Pattern ¶
func (*Schema) Properties ¶
func (*Schema) Required ¶
func (*Schema) Type ¶
func (*Schema) UniqueItems ¶
func (*Schema) WithTypeAndObjectMeta ¶
func (*Schema) XListMapKeys ¶
func (*Schema) XListType ¶
func (*Schema) XMapType ¶
func (*Schema) XValidations ¶
func (s *Schema) XValidations() []common.ValidationRule
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
type ValidationRule ¶
type ValidationRule struct { RuleField string `json:"rule"` MessageField string `json:"message"` MessageExpressionField string `json:"messageExpression"` PathField string `json:"fieldPath"` }
func (ValidationRule) FieldPath ¶
func (v ValidationRule) FieldPath() string
func (ValidationRule) Message ¶
func (v ValidationRule) Message() string
func (ValidationRule) MessageExpression ¶
func (v ValidationRule) MessageExpression() string
func (ValidationRule) Rule ¶
func (v ValidationRule) Rule() string
Source Files ¶
adaptor.go extensions.go
Directories ¶
Path | Synopsis |
---|---|
pkg/cel/openapi/resolver |
- Version
- v0.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 1 hour ago –
Tools for package owners.