bearer

package
v0.0.84 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAttrs

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

GetAttrs returns labels.Set, fields.Set, and error in case the given runtime.Object is not a Bearer

func MatchBearer

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

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

func NewREST(scheme *runtime.Scheme, optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST, error)

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

func NewStatusStrategy

func NewStatusStrategy(strategy *bearerStrategy) *bearerStatusStrategy

NewStatusStrategy creates a bearerStatusStrategy instance.

func NewStrategy

func NewStrategy(typer runtime.ObjectTyper) *bearerStrategy

NewStrategy creates and returns a bearerStrategy instance

func SelectableFields

func SelectableFields(obj *v1alpha1.Bearer) fields.Set

SelectableFields returns a field set that represents the object.

Types

type REST

type REST struct {
	*genericregistry.Store
}

REST implements a RESTStorage for API services.

type StatusREST

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

func (*StatusREST) ConvertToTable

func (r *StatusREST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)

func (*StatusREST) Destroy

func (r *StatusREST) Destroy()

func (*StatusREST) Get

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

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)

Jump to

Keyboard shortcuts

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