globalpolicy

package
v0.0.0-...-a8c9c8d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmptyObject

func EmptyObject() runtime.Object

EmptyObject returns an empty instance

func GetAttrs

func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)

func MatchPolicy

func MatchPolicy(label labels.Selector, field fields.Selector) storage.SelectionPredicate

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 NewList

func NewList() runtime.Object

NewList returns a new shell of a binding list

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 NewREST

func NewREST(scheme *runtime.Scheme, opts server.Options) (*REST, error)

NewREST returns a RESTStorage object that will work against API services.

func (*REST) Categories

func (r *REST) Categories() []string

func (*REST) Create

func (r *REST) Create(ctx context.Context, obj runtime.Object, val rest.ValidateObjectFunc, createOpt *metav1.CreateOptions) (runtime.Object, error)

func (*REST) Delete

func (r *REST) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions) (runtime.Object, bool, error)

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 (*REST) ShortNames

func (r *REST) ShortNames() []string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL