Discover Packages
github.com/bparees/origin
pkg
cmd
server
election
package
Version:
v3.7.60-1+incompatible
Opens a new window with list of versions in this module.
Published: Jul 28, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Overview Index Constants Variables Functions Types NewLeaseEndpointReconciler(endpointRegistry, masterLeases) type Leases NewLeases(storage, baseKey, leaseTime)
Documentation
¶
Package election provides objects for managing the list of active masters via leases.
func NewLeaseEndpointReconciler (endpointRegistry endpoint.Registry, masterLeases Leases) *leaseEndpointReconciler
type Leases interface {
ListLeases() ([]string , error )
UpdateLease(ip string ) error
}
Leases is an interface which assists in managing the set of active masters
func NewLeases (storage storage.Interface, baseKey string , leaseTime uint64 ) Leases
NewLeases creates a new etcd-based Leases implementation.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.