k8sagent

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Overview

Package k8sagent contains machinery for getting pod data from the Kubernetes API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodWatcher

type PodWatcher interface {
	Get(types.UID) (*v1.Pod, bool)
	Pods() chan *v1.Pod
	DeletedPods() chan types.UID
}

type PodWatcherImpl

type PodWatcherImpl struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewPodWatcher

func NewPodWatcher(namespace string, labelSelector string, fieldSelector string, client corev1.PodsGetter) *PodWatcherImpl

func (*PodWatcherImpl) DeletedPods

func (w *PodWatcherImpl) DeletedPods() chan types.UID

func (*PodWatcherImpl) Get

func (w *PodWatcherImpl) Get(uid types.UID) (*v1.Pod, bool)

func (*PodWatcherImpl) Pods

func (w *PodWatcherImpl) Pods() chan *v1.Pod

Jump to

Keyboard shortcuts

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