Documentation
¶
Index ¶
- Constants
- Variables
- func Factory(ctx context.Context, config rest.Config) (context.Context, controller.Starter, error)
- func Kind(kind string) schema.GroupKind
- func NewHandler(namespace, name string, obj v1alpha2.Handler) *v1alpha2.Handler
- func NewInstance(namespace, name string, obj v1alpha2.Instance) *v1alpha2.Instance
- func NewQuotaSpec(namespace, name string, obj v1alpha2.QuotaSpec) *v1alpha2.QuotaSpec
- func NewQuotaSpecBinding(namespace, name string, obj v1alpha2.QuotaSpecBinding) *v1alpha2.QuotaSpecBinding
- func NewRule(namespace, name string, obj v1alpha2.Rule) *v1alpha2.Rule
- func Resource(resource string) schema.GroupResource
- type Client
- func (c *Client) Handlers(namespace string) HandlerInterface
- func (c *Client) Instances(namespace string) InstanceInterface
- func (c *Client) QuotaSpecBindings(namespace string) QuotaSpecBindingInterface
- func (c *Client) QuotaSpecs(namespace string) QuotaSpecInterface
- func (c *Client) RESTClient() rest.Interface
- func (c *Client) Rules(namespace string) RuleInterface
- func (c *Client) Start(ctx context.Context, threadiness int) error
- func (c *Client) Sync(ctx context.Context) error
- type Clients
- type HandlerChangeHandlerFunc
- type HandlerClient
- type HandlerClientCache
- type HandlerController
- type HandlerHandlerFunc
- type HandlerIndexer
- type HandlerInterface
- type HandlerLifecycle
- type HandlerList
- type HandlerLister
- type HandlersGetter
- type InstanceChangeHandlerFunc
- type InstanceClient
- type InstanceClientCache
- type InstanceController
- type InstanceHandlerFunc
- type InstanceIndexer
- type InstanceInterface
- type InstanceLifecycle
- type InstanceList
- type InstanceLister
- type InstancesGetter
- type Interface
- type QuotaSpecBindingChangeHandlerFunc
- type QuotaSpecBindingClient
- type QuotaSpecBindingClientCache
- type QuotaSpecBindingController
- type QuotaSpecBindingHandlerFunc
- type QuotaSpecBindingIndexer
- type QuotaSpecBindingInterface
- type QuotaSpecBindingLifecycle
- type QuotaSpecBindingList
- type QuotaSpecBindingLister
- type QuotaSpecBindingsGetter
- type QuotaSpecChangeHandlerFunc
- type QuotaSpecClient
- type QuotaSpecClientCache
- type QuotaSpecController
- type QuotaSpecHandlerFunc
- type QuotaSpecIndexer
- type QuotaSpecInterface
- type QuotaSpecLifecycle
- type QuotaSpecList
- type QuotaSpecLister
- type QuotaSpecsGetter
- type RuleChangeHandlerFunc
- type RuleClient
- type RuleClientCache
- type RuleController
- type RuleHandlerFunc
- type RuleIndexer
- type RuleInterface
- type RuleLifecycle
- type RuleList
- type RuleLister
- type RulesGetter
Constants ¶
const ( GroupName = "config.istio.io" Version = "v1alpha2" )
Variables ¶
var ( HandlerGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "Handler", } HandlerResource = metav1.APIResource{ Name: "handlers", SingularName: "handler", Namespaced: true, Kind: HandlerGroupVersionKind.Kind, } )
var ( InstanceGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "Instance", } InstanceResource = metav1.APIResource{ Name: "instances", SingularName: "instance", Namespaced: true, Kind: InstanceGroupVersionKind.Kind, } )
var ( QuotaSpecBindingGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "QuotaSpecBinding", } QuotaSpecBindingResource = metav1.APIResource{ Name: "quotaspecbindings", SingularName: "quotaspecbinding", Namespaced: true, Kind: QuotaSpecBindingGroupVersionKind.Kind, } )
var ( QuotaSpecGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "QuotaSpec", } QuotaSpecResource = metav1.APIResource{ Name: "quotaspecs", SingularName: "quotaspec", Namespaced: true, Kind: QuotaSpecGroupVersionKind.Kind, } )
var ( RuleGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "Rule", } RuleResource = metav1.APIResource{ Name: "rules", SingularName: "rule", Namespaced: true, Kind: RuleGroupVersionKind.Kind, } )
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func NewInstance ¶
func NewQuotaSpec ¶
func NewQuotaSpecBinding ¶
func NewQuotaSpecBinding(namespace, name string, obj v1alpha2.QuotaSpecBinding) *v1alpha2.QuotaSpecBinding
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Client ¶
func (*Client) Handlers ¶
func (c *Client) Handlers(namespace string) HandlerInterface
func (*Client) Instances ¶
func (c *Client) Instances(namespace string) InstanceInterface
func (*Client) QuotaSpecBindings ¶
func (c *Client) QuotaSpecBindings(namespace string) QuotaSpecBindingInterface
func (*Client) QuotaSpecs ¶
func (c *Client) QuotaSpecs(namespace string) QuotaSpecInterface
func (*Client) RESTClient ¶
func (*Client) Rules ¶
func (c *Client) Rules(namespace string) RuleInterface
type Clients ¶
type Clients struct { Interface Interface Handler HandlerClient Instance InstanceClient Rule RuleClient QuotaSpec QuotaSpecClient QuotaSpecBinding QuotaSpecBindingClient }
func ClientsFrom ¶
func NewClientsFromInterface ¶
type HandlerClient ¶
type HandlerClient interface { Create(*v1alpha2.Handler) (*v1alpha2.Handler, error) Get(namespace, name string, opts metav1.GetOptions) (*v1alpha2.Handler, error) Update(*v1alpha2.Handler) (*v1alpha2.Handler, error) Delete(namespace, name string, options *metav1.DeleteOptions) error List(namespace string, opts metav1.ListOptions) (*HandlerList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Cache() HandlerClientCache OnCreate(ctx context.Context, name string, sync HandlerChangeHandlerFunc) OnChange(ctx context.Context, name string, sync HandlerChangeHandlerFunc) OnRemove(ctx context.Context, name string, sync HandlerChangeHandlerFunc) Enqueue(namespace, name string) Generic() controller.GenericController ObjectClient() *objectclient.ObjectClient Interface() HandlerInterface }
type HandlerClientCache ¶
type HandlerController ¶
type HandlerController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() HandlerLister AddHandler(ctx context.Context, name string, handler HandlerHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler HandlerHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type HandlerHandlerFunc ¶
func NewHandlerLifecycleAdapter ¶
func NewHandlerLifecycleAdapter(name string, clusterScoped bool, client HandlerInterface, l HandlerLifecycle) HandlerHandlerFunc
type HandlerInterface ¶
type HandlerInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1alpha2.Handler) (*v1alpha2.Handler, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1alpha2.Handler, error) Get(name string, opts metav1.GetOptions) (*v1alpha2.Handler, error) Update(*v1alpha2.Handler) (*v1alpha2.Handler, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*HandlerList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() HandlerController AddHandler(ctx context.Context, name string, sync HandlerHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle HandlerLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync HandlerHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle HandlerLifecycle) }
type HandlerLifecycle ¶
type HandlerList ¶
type HandlerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1alpha2.Handler }
func (*HandlerList) DeepCopy ¶
func (in *HandlerList) DeepCopy() *HandlerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HandlerList.
func (*HandlerList) DeepCopyInto ¶
func (in *HandlerList) DeepCopyInto(out *HandlerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HandlerList) DeepCopyObject ¶
func (in *HandlerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HandlerLister ¶
type HandlersGetter ¶
type HandlersGetter interface {
Handlers(namespace string) HandlerInterface
}
type InstanceClient ¶
type InstanceClient interface { Create(*v1alpha2.Instance) (*v1alpha2.Instance, error) Get(namespace, name string, opts metav1.GetOptions) (*v1alpha2.Instance, error) Update(*v1alpha2.Instance) (*v1alpha2.Instance, error) Delete(namespace, name string, options *metav1.DeleteOptions) error List(namespace string, opts metav1.ListOptions) (*InstanceList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Cache() InstanceClientCache OnCreate(ctx context.Context, name string, sync InstanceChangeHandlerFunc) OnChange(ctx context.Context, name string, sync InstanceChangeHandlerFunc) OnRemove(ctx context.Context, name string, sync InstanceChangeHandlerFunc) Enqueue(namespace, name string) Generic() controller.GenericController ObjectClient() *objectclient.ObjectClient Interface() InstanceInterface }
type InstanceClientCache ¶
type InstanceController ¶
type InstanceController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() InstanceLister AddHandler(ctx context.Context, name string, handler InstanceHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler InstanceHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type InstanceHandlerFunc ¶
func NewInstanceLifecycleAdapter ¶
func NewInstanceLifecycleAdapter(name string, clusterScoped bool, client InstanceInterface, l InstanceLifecycle) InstanceHandlerFunc
type InstanceInterface ¶
type InstanceInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1alpha2.Instance) (*v1alpha2.Instance, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1alpha2.Instance, error) Get(name string, opts metav1.GetOptions) (*v1alpha2.Instance, error) Update(*v1alpha2.Instance) (*v1alpha2.Instance, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*InstanceList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() InstanceController AddHandler(ctx context.Context, name string, sync InstanceHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle InstanceLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync InstanceHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle InstanceLifecycle) }
type InstanceLifecycle ¶
type InstanceList ¶
type InstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1alpha2.Instance }
func (*InstanceList) DeepCopy ¶
func (in *InstanceList) DeepCopy() *InstanceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceList.
func (*InstanceList) DeepCopyInto ¶
func (in *InstanceList) DeepCopyInto(out *InstanceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InstanceList) DeepCopyObject ¶
func (in *InstanceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InstanceLister ¶
type InstancesGetter ¶
type InstancesGetter interface {
Instances(namespace string) InstanceInterface
}
type Interface ¶
type Interface interface { RESTClient() rest.Interface controller.Starter HandlersGetter InstancesGetter RulesGetter QuotaSpecsGetter QuotaSpecBindingsGetter }
type QuotaSpecBindingChangeHandlerFunc ¶
type QuotaSpecBindingChangeHandlerFunc func(obj *v1alpha2.QuotaSpecBinding) (runtime.Object, error)
type QuotaSpecBindingClient ¶
type QuotaSpecBindingClient interface { Create(*v1alpha2.QuotaSpecBinding) (*v1alpha2.QuotaSpecBinding, error) Get(namespace, name string, opts metav1.GetOptions) (*v1alpha2.QuotaSpecBinding, error) Update(*v1alpha2.QuotaSpecBinding) (*v1alpha2.QuotaSpecBinding, error) Delete(namespace, name string, options *metav1.DeleteOptions) error List(namespace string, opts metav1.ListOptions) (*QuotaSpecBindingList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Cache() QuotaSpecBindingClientCache OnCreate(ctx context.Context, name string, sync QuotaSpecBindingChangeHandlerFunc) OnChange(ctx context.Context, name string, sync QuotaSpecBindingChangeHandlerFunc) OnRemove(ctx context.Context, name string, sync QuotaSpecBindingChangeHandlerFunc) Enqueue(namespace, name string) Generic() controller.GenericController ObjectClient() *objectclient.ObjectClient Interface() QuotaSpecBindingInterface }
type QuotaSpecBindingClientCache ¶
type QuotaSpecBindingClientCache interface { Get(namespace, name string) (*v1alpha2.QuotaSpecBinding, error) List(namespace string, selector labels.Selector) ([]*v1alpha2.QuotaSpecBinding, error) Index(name string, indexer QuotaSpecBindingIndexer) GetIndexed(name, key string) ([]*v1alpha2.QuotaSpecBinding, error) }
type QuotaSpecBindingController ¶
type QuotaSpecBindingController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() QuotaSpecBindingLister AddHandler(ctx context.Context, name string, handler QuotaSpecBindingHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler QuotaSpecBindingHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type QuotaSpecBindingHandlerFunc ¶
type QuotaSpecBindingHandlerFunc func(key string, obj *v1alpha2.QuotaSpecBinding) (runtime.Object, error)
func NewQuotaSpecBindingLifecycleAdapter ¶
func NewQuotaSpecBindingLifecycleAdapter(name string, clusterScoped bool, client QuotaSpecBindingInterface, l QuotaSpecBindingLifecycle) QuotaSpecBindingHandlerFunc
type QuotaSpecBindingIndexer ¶
type QuotaSpecBindingIndexer func(obj *v1alpha2.QuotaSpecBinding) ([]string, error)
type QuotaSpecBindingInterface ¶
type QuotaSpecBindingInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1alpha2.QuotaSpecBinding) (*v1alpha2.QuotaSpecBinding, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1alpha2.QuotaSpecBinding, error) Get(name string, opts metav1.GetOptions) (*v1alpha2.QuotaSpecBinding, error) Update(*v1alpha2.QuotaSpecBinding) (*v1alpha2.QuotaSpecBinding, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*QuotaSpecBindingList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() QuotaSpecBindingController AddHandler(ctx context.Context, name string, sync QuotaSpecBindingHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle QuotaSpecBindingLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync QuotaSpecBindingHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle QuotaSpecBindingLifecycle) }
type QuotaSpecBindingLifecycle ¶
type QuotaSpecBindingLifecycle interface { Create(obj *v1alpha2.QuotaSpecBinding) (runtime.Object, error) Remove(obj *v1alpha2.QuotaSpecBinding) (runtime.Object, error) Updated(obj *v1alpha2.QuotaSpecBinding) (runtime.Object, error) }
type QuotaSpecBindingList ¶
type QuotaSpecBindingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1alpha2.QuotaSpecBinding }
func (*QuotaSpecBindingList) DeepCopy ¶
func (in *QuotaSpecBindingList) DeepCopy() *QuotaSpecBindingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaSpecBindingList.
func (*QuotaSpecBindingList) DeepCopyInto ¶
func (in *QuotaSpecBindingList) DeepCopyInto(out *QuotaSpecBindingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*QuotaSpecBindingList) DeepCopyObject ¶
func (in *QuotaSpecBindingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type QuotaSpecBindingLister ¶
type QuotaSpecBindingLister interface { List(namespace string, selector labels.Selector) (ret []*v1alpha2.QuotaSpecBinding, err error) Get(namespace, name string) (*v1alpha2.QuotaSpecBinding, error) }
type QuotaSpecBindingsGetter ¶
type QuotaSpecBindingsGetter interface {
QuotaSpecBindings(namespace string) QuotaSpecBindingInterface
}
type QuotaSpecClient ¶
type QuotaSpecClient interface { Create(*v1alpha2.QuotaSpec) (*v1alpha2.QuotaSpec, error) Get(namespace, name string, opts metav1.GetOptions) (*v1alpha2.QuotaSpec, error) Update(*v1alpha2.QuotaSpec) (*v1alpha2.QuotaSpec, error) Delete(namespace, name string, options *metav1.DeleteOptions) error List(namespace string, opts metav1.ListOptions) (*QuotaSpecList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Cache() QuotaSpecClientCache OnCreate(ctx context.Context, name string, sync QuotaSpecChangeHandlerFunc) OnChange(ctx context.Context, name string, sync QuotaSpecChangeHandlerFunc) OnRemove(ctx context.Context, name string, sync QuotaSpecChangeHandlerFunc) Enqueue(namespace, name string) Generic() controller.GenericController ObjectClient() *objectclient.ObjectClient Interface() QuotaSpecInterface }
type QuotaSpecClientCache ¶
type QuotaSpecController ¶
type QuotaSpecController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() QuotaSpecLister AddHandler(ctx context.Context, name string, handler QuotaSpecHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler QuotaSpecHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type QuotaSpecHandlerFunc ¶
func NewQuotaSpecLifecycleAdapter ¶
func NewQuotaSpecLifecycleAdapter(name string, clusterScoped bool, client QuotaSpecInterface, l QuotaSpecLifecycle) QuotaSpecHandlerFunc
type QuotaSpecInterface ¶
type QuotaSpecInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1alpha2.QuotaSpec) (*v1alpha2.QuotaSpec, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1alpha2.QuotaSpec, error) Get(name string, opts metav1.GetOptions) (*v1alpha2.QuotaSpec, error) Update(*v1alpha2.QuotaSpec) (*v1alpha2.QuotaSpec, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*QuotaSpecList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() QuotaSpecController AddHandler(ctx context.Context, name string, sync QuotaSpecHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle QuotaSpecLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync QuotaSpecHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle QuotaSpecLifecycle) }
type QuotaSpecLifecycle ¶
type QuotaSpecList ¶
type QuotaSpecList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1alpha2.QuotaSpec }
func (*QuotaSpecList) DeepCopy ¶
func (in *QuotaSpecList) DeepCopy() *QuotaSpecList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new QuotaSpecList.
func (*QuotaSpecList) DeepCopyInto ¶
func (in *QuotaSpecList) DeepCopyInto(out *QuotaSpecList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*QuotaSpecList) DeepCopyObject ¶
func (in *QuotaSpecList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type QuotaSpecLister ¶
type QuotaSpecsGetter ¶
type QuotaSpecsGetter interface {
QuotaSpecs(namespace string) QuotaSpecInterface
}
type RuleChangeHandlerFunc ¶
type RuleClient ¶
type RuleClient interface { Create(*v1alpha2.Rule) (*v1alpha2.Rule, error) Get(namespace, name string, opts metav1.GetOptions) (*v1alpha2.Rule, error) Update(*v1alpha2.Rule) (*v1alpha2.Rule, error) Delete(namespace, name string, options *metav1.DeleteOptions) error List(namespace string, opts metav1.ListOptions) (*RuleList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Cache() RuleClientCache OnCreate(ctx context.Context, name string, sync RuleChangeHandlerFunc) OnChange(ctx context.Context, name string, sync RuleChangeHandlerFunc) OnRemove(ctx context.Context, name string, sync RuleChangeHandlerFunc) Enqueue(namespace, name string) Generic() controller.GenericController ObjectClient() *objectclient.ObjectClient Interface() RuleInterface }
type RuleClientCache ¶
type RuleController ¶
type RuleController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() RuleLister AddHandler(ctx context.Context, name string, handler RuleHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler RuleHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type RuleHandlerFunc ¶
func NewRuleLifecycleAdapter ¶
func NewRuleLifecycleAdapter(name string, clusterScoped bool, client RuleInterface, l RuleLifecycle) RuleHandlerFunc
type RuleInterface ¶
type RuleInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1alpha2.Rule) (*v1alpha2.Rule, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1alpha2.Rule, error) Get(name string, opts metav1.GetOptions) (*v1alpha2.Rule, error) Update(*v1alpha2.Rule) (*v1alpha2.Rule, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*RuleList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() RuleController AddHandler(ctx context.Context, name string, sync RuleHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle RuleLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync RuleHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle RuleLifecycle) }
type RuleLifecycle ¶
type RuleList ¶
type RuleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1alpha2.Rule }
func (*RuleList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RuleList.
func (*RuleList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RuleList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RuleLister ¶
type RulesGetter ¶
type RulesGetter interface {
Rules(namespace string) RuleInterface
}
Source Files
¶
- zz_generated_deepcopy.go
- zz_generated_handler_controller.go
- zz_generated_handler_lifecycle_adapter.go
- zz_generated_instance_controller.go
- zz_generated_instance_lifecycle_adapter.go
- zz_generated_k8s_client.go
- zz_generated_quota_spec_binding_controller.go
- zz_generated_quota_spec_binding_lifecycle_adapter.go
- zz_generated_quota_spec_controller.go
- zz_generated_quota_spec_lifecycle_adapter.go
- zz_generated_rule_controller.go
- zz_generated_rule_lifecycle_adapter.go
- zz_generated_scheme.go