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