Documentation ¶
Index ¶
Constants ¶
View Source
const (
// SwarmLabel is the label for the swarm annotation that stores the location of the leader
SwarmLabel = "infrakit.leader.location"
)
Variables ¶
This section is empty.
Functions ¶
func NewDetector ¶
NewDetector return an implementation of leader detector
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is the backend for storing leader location
func (Store) GetLocation ¶
GetLocation returns the location of the leader
Click to show internal directories.
Click to hide internal directories.