services

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindNodeByName

func FindNodeByName(nodes []*v1.Node, name string) *v1.Node

Types

type KubernetesService

type KubernetesService interface {
	GetAllNodes() ([]*core1.Node, error)
	AddNodeAnnotation(nodeName string, annotationKey string, annotationValue string) error
	CreatePod(pod *core1.Pod) error
	DeletePod(namespace string, name string) error
}

func NewKubernetesService

func NewKubernetesService() (KubernetesService, error)

Jump to

Keyboard shortcuts

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