k8sagent

package
v0.0.0-...-b6baa5e Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

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
}

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) 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