pod

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package pod provides kubernetes pod information and preriodically update

Package pod provides kubernetes pod information and preriodically update

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*reconciler) error

func WithControllerName

func WithControllerName(name string) Option

func WithManager

func WithManager(mgr manager.Manager) Option

func WithOnErrorFunc

func WithOnErrorFunc(f func(err error)) Option

func WithOnReconcileFunc

func WithOnReconcileFunc(f func(podList map[string][]Pod)) Option

type Pod

type Pod struct {
	Name string
	CPU  float64
	Mem  float64
}

type PodWatcher

type PodWatcher interface {
	k8s.ResourceController
	GetPods(name string) (pods []Pod, ok bool)
}

func New

func New(opts ...Option) PodWatcher

Jump to

Keyboard shortcuts

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