Documentation
¶
Overview ¶
Package leader is an election mechanism as explained in https://github.com/kubernetes/client-go/blob/master/examples/leader-election/main.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { LeaseLockName string LeaseLockNamespace string LeaseLockId string StopCh <-chan struct{} Ctx context.Context Config *rest.Config Client *clientset.Clientset Namespace string ControllerId string Run func( ctx context.Context, stopCh <-chan struct{}, config *rest.Config, client *clientset.Clientset, namespace string, controllerId string, ) Stop func(config *rest.Config, client *clientset.Clientset) Cancel context.CancelFunc }
Click to show internal directories.
Click to hide internal directories.