Documentation ¶
Index ¶
- Variables
- func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)
- func MatchTenant(label labels.Selector, field fields.Selector) storage.SelectionPredicate
- func NewStrategy(typer runtime.ObjectTyper) tenantStrategy
- func Resource(resource string) schema.GroupResource
- func SelectableFields(obj *tenantv1alpha1.Tenant) fields.Set
- type REST
- type RESTStorageProvider
Constants ¶
This section is empty.
Variables ¶
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "tenant.kubezoo.io", Version: "v1alpha1"}
Functions ¶
func GetAttrs ¶
GetAttrs returns labels.Set, fields.Set, and error in case the given runtime.Object is not a Flunder
func MatchTenant ¶
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
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.
Click to show internal directories.
Click to hide internal directories.