Documentation ¶
Overview ¶
Package kubegroup provides autodiscovery for groupcache.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindMyAddress ¶ added in v1.1.0
FindMyAddress returns my adress.
Types ¶
type Group ¶ added in v0.5.0
type Group struct {
// contains filtered or unexported fields
}
Group holds context for kubegroup.
func UpdatePeers ¶
UpdatePeers continuously updates groupcache peers.
type Options ¶ added in v0.2.0
type Options struct { // Pool is an interface to plug in a target for delivering peering // updates. *groupcache.HTTPPool, created with // groupcache.NewHTTPPoolOpts(), implements this interface. // Pool supports groupcache2. Pool PeerGroup // PeerSet is an interface to plug in a target for delivering peering // updates. *groupcache.Daemon, created with // groupcache.ListenAndServe(), implements this interface. // PeerSet supports groupcache3. Peers PeerSet // Client provides kubernetes client. Client *kubernetes.Clientset // GroupCachePort is the listening port used by groupcache peering http // server. For instance, ":5000". GroupCachePort string // LabelSelector is required. Example: "key1=value1,key2=value2" LabelSelector string // Debug enables non-error logging. Errors are always logged. Debug bool // Logf optionally sets custom logging. Logf func(format string, v ...any) // MetricsNamespace provides optional namespace for prometheus metrics. MetricsNamespace string // MetricsRegisterer is required registerer for prometheus metrics. MetricsRegisterer prometheus.Registerer // MetricsRegisterer is required gatherer for prometheus metrics. MetricsGatherer prometheus.Gatherer // ForceNamespaceDefault is used only for testing. ForceNamespaceDefault bool }
Options specifies options for UpdatePeers.
Click to show internal directories.
Click to hide internal directories.