Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewElection ¶
func NewElection(electionID, id, namespace string, ttl time.Duration, callback func(leader string), c client.Interface, leaderElectionClient *clientset.Clientset) (*leaderelection.LeaderElector, error)
NewElection creates an election. 'namespace'/'election' should be an existing Kubernetes Service 'id' is the id if this leader, should be unique.
Types ¶
type Config ¶
type Config struct { Client *unversioned.Client ElectionClient *clientset.Clientset PublishService string IngressLister cache_store.StoreToIngressLister }
Config ...
Click to show internal directories.
Click to hide internal directories.