Documentation ¶
Index ¶
- func ObjectInCluster(cluster string, obj interface{}) bool
- func Start(ctx context.Context, threadiness int, starters ...Starter) error
- func Sync(ctx context.Context, starters ...Starter) error
- func SyncThenStart(ctx context.Context, threadiness int, starters ...Starter) error
- type Backend
- type ForgetError
- type GenericController
- type HandlerFunc
- type Starter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ObjectInCluster ¶
Types ¶
type Backend ¶
type Backend interface { List(opts metav1.ListOptions) (runtime.Object, error) Watch(opts metav1.ListOptions) (watch.Interface, error) ObjectFactory() objectclient.ObjectFactory }
type ForgetError ¶
type ForgetError struct {
Err error
}
func (*ForgetError) Error ¶
func (f *ForgetError) Error() string
type GenericController ¶
type GenericController interface { Informer() cache.SharedIndexInformer AddHandler(name string, handler HandlerFunc) HandlerCount() int Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
func NewGenericController ¶
func NewGenericController(name string, genericClient Backend) GenericController
type HandlerFunc ¶
Click to show internal directories.
Click to hide internal directories.