kube

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: Apache-2.0 Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewKubernetesClient = func() KubernetesClient {
	return &kubernetesClient{}
}

Functions

func NewRequestLatencyMetric

func NewRequestLatencyMetric(metricStorage *metric_storage.MetricStorage) metrics.LatencyMetric

func NewRequestResultMetric

func NewRequestResultMetric(metricStorage *metric_storage.MetricStorage) metrics.ResultMetric

func RegisterKubernetesClientMetrics

func RegisterKubernetesClientMetrics(metricStorage *metric_storage.MetricStorage)

Types

type ClientRequestLatencyMetric

type ClientRequestLatencyMetric struct {
	// contains filtered or unexported fields
}

func (ClientRequestLatencyMetric) Observe

func (c ClientRequestLatencyMetric) Observe(verb string, u url.URL, latency time.Duration)

type ClientRequestResultMetric

type ClientRequestResultMetric struct {
	// contains filtered or unexported fields
}

func (ClientRequestResultMetric) Increment

func (c ClientRequestResultMetric) Increment(code string, method string, host string)

type KubernetesClient

type KubernetesClient interface {
	kubernetes.Interface

	WithContextName(contextName string)
	WithConfigPath(configPath string)
	WithServer(server string)
	WithRateLimiterSettings(qps float32, burst int)
	WithMetricStorage(metricStorage *metric_storage.MetricStorage)

	Init() error

	DefaultNamespace() string
	Dynamic() dynamic.Interface

	APIResourceList(apiVersion string) ([]*metav1.APIResourceList, error)
	APIResource(apiVersion string, kind string) (*metav1.APIResource, error)
	GroupVersionResource(apiVersion string, kind string) (schema.GroupVersionResource, error)
}

func NewFakeKubernetesClient

func NewFakeKubernetesClient() KubernetesClient

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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