Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ElectionConfig ¶
type ElectionConfig struct { TTL time.Duration Name, Namespace, ResourceLockType string // contains filtered or unexported fields }
func NewDefaultElectionConfig ¶
func NewDefaultElectionConfig(namespace, name string, cfg *rest.Config) *ElectionConfig
func NewElectionConfig ¶
func (*ElectionConfig) Run ¶
func (ec *ElectionConfig) Run(ctx context.Context, id string, onLeader OnLeader, onSwitchLeader OnNewLeader) error
type OnNewLeader ¶
type OnNewLeader func(string)
Click to show internal directories.
Click to hide internal directories.