test_rest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "tenant.kubezoo.io", Version: "v1alpha1"}

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 Flunder

func MatchTenant

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

MatchFlunder 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) tenantStrategy

NewStrategy creates and returns a tenantStrategy instance

func Resource

func Resource(resource string) schema.GroupResource

func SelectableFields

func SelectableFields(obj *tenantv1alpha1.Tenant) fields.Set

SelectableFields returns a field set that represents the object.

Types

type REST

type REST struct {
	*genericregistry.Store
}

REST implements a RESTStorage for audit sink against etcd

func NewREST

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

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

type RESTStorageProvider

type RESTStorageProvider struct{}

func (RESTStorageProvider) GroupName

func (p RESTStorageProvider) GroupName() string

GroupName returns the group name.

func (RESTStorageProvider) NewRESTStorage

func (p RESTStorageProvider) NewRESTStorage(apiResourceConfigSource serverstorage.APIResourceConfigSource, restOptionsGetter generic.RESTOptionsGetter) (genericapiserver.APIGroupInfo, error)

NewRESTStorage provide the rest storage for tenant.

Jump to

Keyboard shortcuts

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