Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventHandler ¶ added in v1.4.1
type EventHandler interface {
ListerWatcher() cache.ListerWatcher
KubeClient() kubernetes.Interface
Name() string
ObjectType() runtime.Object
Handle(ctx context.Context, args EventArgs) error
}
EventHandler is type of any compatible event handler.
type Listener ¶ added in v1.4.1
type Listener struct {
LeaseDuration time.Duration
RenewDeadline time.Duration
RetryPeriod time.Duration
// Controller
ResyncPeriod time.Duration
// contains filtered or unexported fields
}
Listener is event listener.
func NewListener ¶ added in v1.4.1
func NewListener(handler EventHandler, identity, leaderLock string, threadiness int) *Listener
NewListener creates new listener with provided event handler.
Click to show internal directories.
Click to hide internal directories.