kubernetes

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubernetesClientWrapper

type KubernetesClientWrapper struct {
	ClientSet *kubernetes.Clientset
}

func (*KubernetesClientWrapper) CoreV1

type MetricsClientWrapper

type MetricsClientWrapper struct {
	ClientSet *metricsclient.Clientset
}

func (*MetricsClientWrapper) MetricsV1beta1

type RealKubernetesClient

type RealKubernetesClient struct {
	ClientSet *kubernetes.Clientset
}

func (*RealKubernetesClient) ListNamespaces

func (*RealKubernetesClient) ListNodes

func (*RealKubernetesClient) ListPods

func (r *RealKubernetesClient) ListPods(ctx context.Context, namespace string, opts metav1.ListOptions) (*corev1.PodList, error)

type RealMetricsClient

type RealMetricsClient struct {
	ClientSet *metricsclient.Clientset
}

func (*RealMetricsClient) ListNodeMetrics

func (r *RealMetricsClient) ListNodeMetrics(ctx context.Context, opts metav1.ListOptions) (*ultron.MetricsNodeList, error)

func (*RealMetricsClient) ListPodMetrics

func (r *RealMetricsClient) ListPodMetrics(ctx context.Context, namespace string, opts metav1.ListOptions) (*ultron.MetricsPodList, error)

Jump to

Keyboard shortcuts

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