kubecontrollersconfig

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: 18 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 Match

Match 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 NewREST

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

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

func NewStatusStrategy

func NewStatusStrategy(strategy apiServerStrategy) apiServerStatusStrategy

func NewStrategy

func NewStrategy(typer runtime.ObjectTyper) apiServerStrategy

NewStrategy returns a new NamespaceScopedStrategy for instances

func ToSelectableFields

func ToSelectableFields(obj *calico.KubeControllersConfiguration) fields.Set

ToSelectableFields returns a field set that represents the object.

func ValidateUpdate

func ValidateUpdate(update, old *calico.KubeControllersConfiguration) field.ErrorList

Types

type REST

type REST struct {
	*genericregistry.Store
}

rest implements a RESTStorage for API services against etcd

type StatusREST

type StatusREST struct {
	// contains filtered or unexported fields
}

StatusREST implements the REST endpoint for changing the status of a deployment

func (*StatusREST) Get

func (r *StatusREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)

Get retrieves the object from the storage. It is required to support Patch.

func (*StatusREST) New

func (r *StatusREST) New() runtime.Object

func (*StatusREST) Update

func (r *StatusREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc,
	updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)

Update alters the status subset of an object.

Jump to

Keyboard shortcuts

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