client

package
v1.26.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDiscoverer

func NewDiscoverer(logger *logrus.Logger, kubernetes client.Kubernetes) client.Discoverer

NewDiscoverer instantiates a new Discoverer required for discovering node IP of kube-state-metrics pod and endpoint of kube-state-metrics service

func NewDiscoveryCacher

func NewDiscoveryCacher(discoverer client.Discoverer, storage storage.Storage, ttl time.Duration, logger *logrus.Logger) client.Discoverer

NewDiscoveryCacher creates a new DiscoveryCacher that wraps a discoverer and caches the data into the specified storage

func NewDistributedDiscoveryCacher

func NewDistributedDiscoveryCacher(innerDiscoverer client.MultiDiscoverer, storage storage.Storage, ttl time.Duration, logger *logrus.Logger) client.MultiDiscoverer

NewDistributedDiscoveryCacher initializes a client.MultiDiscoveryCacher with the given parameters. This should be the only way to create instances of client.MultiDiscoveryCacher, as it guarantees the cached data pointer is initialized.

func NewDistributedPodLabelDiscoverer

func NewDistributedPodLabelDiscoverer(ksmPodLabel string, nodeIP string, logger *logrus.Logger, k8sClient client.Kubernetes) client.MultiDiscoverer

NewPodLabelDiscoverer creates a new KSM discoverer that will find KSM pods using k8s labels

func NewPodLabelDiscoverer

func NewPodLabelDiscoverer(ksmPodLabel string, ksmPodPort int, ksmScheme string, logger *logrus.Logger, k8sClient client.Kubernetes) client.Discoverer

NewPodLabelDiscoverer creates a new KSM discoverer that will find KSM pods using k8s labels

func NewStaticEndpointDiscoverer

func NewStaticEndpointDiscoverer(ksmEndpoint string, logger *logrus.Logger, kubernetes client.Kubernetes) client.Discoverer

NewStaticEndpointDiscoverer instantiates a new Discoverer required for discovering only node IP of kube-state-metrics pod

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL