kubemon

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: MIT Imports: 9 Imported by: 0

README

Kubemon Build Status

A golang library for monitoring the kubernetes resources

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAllInvolvedPodSelector

func BuildAllInvolvedPodSelector() fields.Selector

func BuildInvolvedPodSelector

func BuildInvolvedPodSelector(podName string) fields.Selector

func FindPod

func FindPod(clientset *kubernetes.Clientset, namespace string, podId string) (*core_v1.Pod, error)

func GetNodes

func GetNodes(clientset *kubernetes.Clientset) (*core_v1.NodeList, error)

func GetPods

func GetPods(clientset *kubernetes.Clientset, namespace string) (*core_v1.PodList, error)

func WatchEvents

func WatchEvents(clientset *kubernetes.Clientset, namespace string, sel fields.Selector, funcs cache.ResourceEventHandlerFuncs) (cache.Store, cache.Controller)

func WatchJobs

func WatchJobs(clientset *kubernetes.Clientset, namespace string, sel fields.Selector, funcs cache.ResourceEventHandlerFuncs) (cache.Store, cache.Controller)

namespace can be "core_v1.NamespaceDefault"

func WatchPVCs

func WatchPVCs(clientset *kubernetes.Clientset, namespace string, sel fields.Selector, funcs cache.ResourceEventHandlerFuncs) (cache.Store, cache.Controller)

func WatchPods

func WatchPods(clientset *kubernetes.Clientset, namespace string, sel fields.Selector, funcs cache.ResourceEventHandlerFuncs) (cache.Store, cache.Controller)

Types

type Watcher

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

Jump to

Keyboard shortcuts

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