Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KonductorElection ¶
type KonductorElection struct {
// contains filtered or unexported fields
}
func NewKonductorElection ¶
func NewKonductorElection( kube *kubeclient.Kubeclient, event *event.Event, run func(context.Context), onElected func(konductor string), opts Options, ) *KonductorElection
func (*KonductorElection) Konductor ¶
func (ko *KonductorElection) Konductor() string
Konductor returns the instance that won the konductor election
func (*KonductorElection) Name ¶
func (ko *KonductorElection) Name() string
func (*KonductorElection) Shutdown ¶
func (ko *KonductorElection) Shutdown(ctx context.Context)
func (*KonductorElection) Started ¶
func (ko *KonductorElection) Started() bool
Click to show internal directories.
Click to hide internal directories.