Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a new factory for your extension.
Types ¶
type Config ¶
type Config struct { k8sconfig.APIConfig `mapstructure:",squash"` LeaseName string `mapstructure:"lease_name"` LeaseNamespace string `mapstructure:"lease_namespace"` LeaseDuration time.Duration `mapstructure:"lease_duration"` RenewDuration time.Duration `mapstructure:"renew_deadline"` RetryPeriod time.Duration `mapstructure:"retry_period"` // contains filtered or unexported fields }
Config is the configuration for the leader elector extension.
type LeaderElection ¶
type LeaderElection interface { extension.Extension SetCallBackFuncs(StartCallback, StopCallback) }
LeaderElection Interface allows the invoker to set the callback functions that would be invoked when the leader wins or loss the election.
type StartCallback ¶
type StopCallback ¶
type StopCallback = func()
Click to show internal directories.
Click to hide internal directories.