podclient

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package podclient provides an on-demand client for retrieving pods, without using caching, as the HorizontalPodAutoscaler does.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OnDemandPodLister

type OnDemandPodLister struct {
	Clientset kubernetes.Interface
}

OnDemandPodLister is used to list Pods across a cluster or retrieve a Namespaced Pod Lister

func (*OnDemandPodLister) List

func (p *OnDemandPodLister) List(selector labels.Selector) ([]*corev1.Pod, error)

List lists pods that match the selector across the cluster

func (*OnDemandPodLister) Pods

Pods returns a namespaced pod lister in the namespace provided

type OnDemandPodNamespaceLister

type OnDemandPodNamespaceLister struct {
	Namespace string
	Clientset kubernetes.Interface
}

OnDemandPodNamespaceLister is used to list Pods/get a specific pod in a namespace

func (*OnDemandPodNamespaceLister) Get

Get gets a single pod with the name provided in the namespace

func (*OnDemandPodNamespaceLister) List

func (p *OnDemandPodNamespaceLister) List(selector labels.Selector) ([]*corev1.Pod, error)

List lists pods that match the selector in the namespace

Jump to

Keyboard shortcuts

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