kubernetes/staging/src/k8s.io/apiserver/pkg/cel/lazy/lazy.go

type GetFieldFunc

var _

var _

type MapValue

func NewMapValue(objectType ref.Type) *MapValue {}

// Append adds the given field with its name and callback.
func (m *MapValue) Append(name string, callback GetFieldFunc) {}

// Contains checks if the key is known to the map
func (m *MapValue) Contains(key ref.Val) ref.Val {}

// Iterator returns an iterator to traverse the map.
func (m *MapValue) Iterator() traits.Iterator {}

// Size returns the number of currently known fields
func (m *MapValue) Size() ref.Val {}

// ConvertToNative returns an error because it is disallowed
func (m *MapValue) ConvertToNative(typeDesc reflect.Type) (any, error) {}

// ConvertToType converts the map to the given type.
// Only its own type and "Type" type are allowed.
func (m *MapValue) ConvertToType(typeVal ref.Type) ref.Val {}

// Equal returns true if the other object is the same pointer-wise.
func (m *MapValue) Equal(other ref.Val) ref.Val {}

// Type returns its registered type.
func (m *MapValue) Type() ref.Type {}

// Value is not allowed.
func (m *MapValue) Value() any {}

// resolveField resolves the field. Calls the callback if the value is not yet stored.
func (m *MapValue) resolveField(name string) ref.Val {}

func (m *MapValue) Find(key ref.Val) (ref.Val, bool) {}

func (m *MapValue) Get(key ref.Val) ref.Val {}

type iterator

func (i *iterator) ConvertToNative(typeDesc reflect.Type) (any, error) {}

func (i *iterator) ConvertToType(typeValue ref.Type) ref.Val {}

func (i *iterator) Equal(other ref.Val) ref.Val {}

func (i *iterator) Type() ref.Type {}

func (i *iterator) Value() any {}

func (i *iterator) HasNext() ref.Val {}

func (i *iterator) Next() ref.Val {}

var _