k8s

package
v0.0.0-...-0122eed Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KubeConfigPathFlag *string

Functions

func GetKubeClient

func GetKubeClient() (*kubernetes.Clientset, error)

func GetKubeConfig

func GetKubeConfig() (*rest.Config, error)

func HomeDir

func HomeDir() string

func NewK8sAPIServer

func NewK8sAPIServer(pr PodRegistry) k8sApi.K8SDaemonServer

Types

type ForEachHandler

type ForEachHandler func(key string, pod v1.Pod)

type PodRegistry

type PodRegistry interface {
	AddPod(pod v1.Pod)
	GetPod(key string) (v1.Pod, bool)
	RemovePod(pod v1.Pod)
	ForEach(handler ForEachHandler)
}

func NewPodRegistry

func NewPodRegistry() PodRegistry

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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