Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilterFuncs ¶
type FilterFuncs struct {
ParentFunc ParentFunc
AddFunc func(obj v1.Object) bool
UpdateFunc func(oldObj, newObj v1.Object) bool
DeleteFunc func(obj v1.Object) bool
}
func (FilterFuncs) Add ¶
func (f FilterFuncs) Add(obj v1.Object) bool
func (FilterFuncs) Delete ¶
func (f FilterFuncs) Delete(obj v1.Object) bool
func (FilterFuncs) Parent ¶
func (f FilterFuncs) Parent(obj v1.Object) (namespace, name string)
func (FilterFuncs) Update ¶
func (f FilterFuncs) Update(oldObj, newObj v1.Object) bool
type InformerGetter ¶
type InformerGetter interface {
Informer() cache.SharedIndexInformer
}
type Option ¶
type Option func(*controller)
func WithInformer ¶
func WithInformer(getter InformerGetter, filter ParentFilter) Option
func WithInformerSynced ¶
func WithInformerSynced(getter InformerGetter) Option
func WithMaxRetries ¶
func WithRateLimiter ¶
func WithRateLimiter(limiter workqueue.RateLimiter) Option
type ParentFilter ¶
func FilterByNames ¶
func FilterByNames(parentFunc ParentFunc, names ...string) ParentFilter
type ParentFunc ¶
type ParentFunc func(obj v1.Object) (namespace, name string)
Click to show internal directories.
Click to hide internal directories.