nodeclient

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ListNodes() ([]*Node, error)
	Close()
}

func NewKubeClient

func NewKubeClient(kubeconfig string, handler cache.ResourceEventHandler, syncPeriod time.Duration) (Client, error)

type KubeClient

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

func (*KubeClient) Close

func (kc *KubeClient) Close()

func (*KubeClient) ListNodes

func (kc *KubeClient) ListNodes() ([]*Node, error)

type Node

type Node struct {
	IPs           []string
	Unschedulable bool
}

Node node struct

Jump to

Keyboard shortcuts

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