k8s

package
v0.0.0-...-f46da47 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRuntimeUnknown = fmt.Errorf("无法确定容器运行时类型")
)

Functions

func GetCurrentNode

func GetCurrentNode(client *kubernetes.Clientset) (*v1.Node, error)

func GetPodsOnNode

func GetPodsOnNode(client *kubernetes.Clientset, nodeName string) (*v1.PodList, error)

Types

type ContainerRuntime

type ContainerRuntime string
var (
	RuntimeDocker ContainerRuntime = "docker"
)

func GetRuntime

func GetRuntime(node *v1.Node) (ContainerRuntime, error)

type PodPidQuery

type PodPidQuery interface {
	Query(pod *v1.Pod) ([]int, error)
}

func NewPodPidQuery

func NewPodPidQuery(node *v1.Node) (PodPidQuery, error)

Jump to

Keyboard shortcuts

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