Documentation
¶
Overview ¶
Copyright (c) Microsoft Corporation. Licensed under the MIT License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LeaderElection ¶
type LeaderElection interface {
// RunOrDie runs the leader election.
RunOrDie(ctx context.Context, id string) error
// Leader gets the address of the elected leader.
Leader() (multiaddr.Multiaddr, error)
}
LeaderElection provides an interface to elect a leader in a kubernetes cluster.
Click to show internal directories.
Click to hide internal directories.