node

package
v1.5.3-rc4 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Drain

func Drain(nodeName string) error

Drain will drain a give node

func Uncordon

func Uncordon(nodeName string) error

Uncordon will uncordon a given node

Types

type List

type List struct {
	Nodes []Node `json:"items"`
}

List is a container that holds all deployment returned from 'kubectl get pods'

func GetAll

func GetAll() (*List, error)

GetAll will return a list of pods on a Kubernetes cluster

type Metadata

type Metadata struct {
	Name string `json:"name"`
}

Metadata holds information about a pod

type Node

type Node struct {
	Metadata `json:"metadata"`
	Spec     Spec `json:"spec"`
}

Node is used to parse data from 'kubectl get pods'

func Get

func Get(name string) (*Node, error)

Get gets a node

type Spec

type Spec struct {
	ProviderID string `json:"providerID"`
}

Spec holds the node spec

Jump to

Keyboard shortcuts

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