Documentation ¶
Index ¶
- type Reader
- type Scheme
- func (s *Scheme) AddKnownTypeWithName(kind string, obj any, keyFunc cache.KeyFunc) error
- func (s *Scheme) AddKnownTypes(types ...any) error
- func (s *Scheme) AllKnownTypes() map[string]reflect.Type
- func (s *Scheme) KindKeyFunc(kind string) (cache.KeyFunc, error)
- func (s *Scheme) New(kind string) (any, error)
- func (s *Scheme) ObjectKeyFunc(obj any) (cache.KeyFunc, error)
- func (s *Scheme) ObjectKind(obj any) (string, error)
- func (s *Scheme) ObjectsKeyFunc(objs any) (cache.KeyFunc, error)
- func (s *Scheme) ObjectsKind(objs any) (string, error)
- func (s *Scheme) Recognizes(kind string) bool
- type SchemeObject
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheme ¶
type Scheme struct {
// contains filtered or unexported fields
}
Scheme is a structure used for managing type registration and lookup by their kind names. It maintains a bidirectional mapping between kind names (strings) and their corresponding Go types (reflect.Type).
func (*Scheme) AddKnownTypeWithName ¶
func (*Scheme) AddKnownTypes ¶
func (*Scheme) AllKnownTypes ¶
AllKnownTypes returns the all known types.
func (*Scheme) Recognizes ¶
type SchemeObject ¶
Click to show internal directories.
Click to hide internal directories.