node

package
v0.0.0-...-2e192d4 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	EC2           *ec2.EC2
	EC2InstanceID string
	// contains filtered or unexported fields
}

Node an EC2 node that needs to be drained

func New

func New(ec2 *ec2.EC2, id string, short bool) (*Node, error)

New instantiates and returns a Node.

func (*Node) Delete

func (n *Node) Delete() error

Delete the node from the cluster

func (*Node) Drain

func (n *Node) Drain() error

Drain all pods from the node using its aws private hostname

func (*Node) State

func (n *Node) State() (string, error)

State of the EC2 instance

Jump to

Keyboard shortcuts

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