Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient() (*kubernetes.Clientset, error)
Types ¶
type Candidate ¶
func NewAlwaysLeaderCandidate ¶
func NewAlwaysLeaderCandidate() Candidate
func NewKubernetesCandidate ¶
func NewKubernetesCandidate(client kubernetes.Interface, namespace, name, id string, ctrl Controller, logger log.Logger) (Candidate, error)
type Controller ¶
type LoggingController ¶
func (LoggingController) OnNewLeader ¶
func (c LoggingController) OnNewLeader(self bool, identity string)
func (LoggingController) OnStartedLeading ¶
func (c LoggingController) OnStartedLeading(ctx context.Context)
func (LoggingController) OnStoppedLeading ¶
func (c LoggingController) OnStoppedLeading()
Click to show internal directories.
Click to hide internal directories.