Documentation
¶
Index ¶
- func EmptyObject() runtime.Object
- func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)
- func MatchPolicy(label labels.Selector, field fields.Selector) storage.SelectionPredicate
- func NewList() runtime.Object
- func NewStrategy(typer runtime.ObjectTyper) policyStrategy
- func PolicyToSelectableFields(obj *calico.GlobalNetworkPolicy) fields.Set
- type REST
- func (r *REST) Categories() []string
- func (r *REST) Create(ctx context.Context, obj runtime.Object, val rest.ValidateObjectFunc, ...) (runtime.Object, error)
- func (r *REST) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, ...) (runtime.Object, bool, error)
- func (r *REST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *REST) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
- func (r *REST) ShortNames() []string
- func (r *REST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
- func (r *REST) Watch(ctx context.Context, options *metainternalversion.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchPolicy ¶
MatchPolicy is the filter used by the generic etcd backend to watch events from etcd to clients of the apiserver only interested in specific labels/fields.
func NewStrategy ¶
func NewStrategy(typer runtime.ObjectTyper) policyStrategy
NewStrategy returns a new NamespaceScopedStrategy for instances
func PolicyToSelectableFields ¶
func PolicyToSelectableFields(obj *calico.GlobalNetworkPolicy) fields.Set
PolicyToSelectableFields returns a field set that represents the object.
Types ¶
type REST ¶
type REST struct { *genericregistry.Store // contains filtered or unexported fields }
rest implements a RESTStorage for API services against etcd
func (*REST) Categories ¶
func (*REST) Get ¶
func (r *REST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
Get retrieves the item from storage.
func (*REST) List ¶
func (r *REST) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
func (*REST) ShortNames ¶
func (*REST) Update ¶
func (r *REST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)
func (*REST) Watch ¶
func (r *REST) Watch(ctx context.Context, options *metainternalversion.ListOptions) (watch.Interface, error)
Click to show internal directories.
Click to hide internal directories.