Documentation ¶
Overview ¶
Package generic provides a generic object store interface and a generic label/field matching type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AttrFunc ¶
AttrFunc returns label and field sets for List or Watch to compare against, or an error.
type Registry ¶
type Registry interface { List(api.Context, Matcher) (runtime.Object, error) Create(ctx api.Context, id string, obj runtime.Object) error Update(ctx api.Context, id string, obj runtime.Object) error Get(ctx api.Context, id string) (runtime.Object, error) Delete(ctx api.Context, id string) error Watch(ctx api.Context, m Matcher, resourceVersion string) (watch.Interface, error) }
Registry knows how to store & list any runtime.Object. Can be used for any object types which don't require special features from the storage layer.
type SelectionPredicate ¶
SelectionPredicate implements a generic predicate that can be passed to GenericRegistry's List or Watch methods. Implements the Matcher interface.
Click to show internal directories.
Click to hide internal directories.