Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
CoreClientset kubernetes.Interface
}
Client is a wrapper for Kubernetes clientset.
type EventHandlerWithContext ¶
type EventHandlerWithContext interface {
ProcessAdd(ctx context.Context, obj interface{})
ProcessUpdate(ctx context.Context, oldObj, newObj interface{})
ProcessDelete(ctx context.Context, obj interface{})
}
EventHandlerWithContext is an interface similar to cache.EventHandler but with a context object.
type Informers ¶
type Informers struct {
// contains filtered or unexported fields
}
Informers keeps multiple informers.
func NewInformers ¶
func NewInformers( k8sclient *Client, stopCh chan struct{}, namespace string, labels map[string]string, ) (*Informers, error)
NewInformers creates a new Informer for Pod.
func (*Informers) SetPodEventHandlers ¶
func (is *Informers) SetPodEventHandlers( ctx context.Context, handlers []EventHandlerWithContext, ) error
SetPodEventHandlers sets the specified handlers to the Pod informer.
Click to show internal directories.
Click to hide internal directories.