nodes

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FetchInfo   = "NOMAD_FETCH_NODE"
	UnwatchInfo = "NOMAD_UNWATCH_NODE"
	WatchInfo   = "NOMAD_WATCH_NODE"
)
View Source
const (
	WatchList   = "NOMAD_WATCH_NODES"
	UnwatchList = "NOMAD_UNWATCH_NODES"
)
View Source
const (
	WatchStats   = "NOMAD_WATCH_CLIENT_STATS"
	UnwatchStats = "NOMAD_UNWATCH_CLIENT_STATS"
)
View Source
const (
	Drain = "NOMAD_DRAIN_CLIENT"
)
View Source
const (
	Remove = "NOMAD_REMOVE_CLIENT"
)

Variables

This section is empty.

Functions

func NewDrain

func NewDrain(action structs.Action, client *api.Client) *drain

func NewInfo

func NewInfo(action structs.Action, client *api.Client, query *api.QueryOptions) *info

func NewList

func NewList(action structs.Action, client *api.Client, query *api.QueryOptions) *list

func NewRemove

func NewRemove(action structs.Action, client *api.Client) *remove

func NewStats

func NewStats(action structs.Action, client *api.Client) *stats

Types

type ClientNameSorter

type ClientNameSorter []*api.NodeListStub

func (ClientNameSorter) Len

func (a ClientNameSorter) Len() int

func (ClientNameSorter) Less

func (a ClientNameSorter) Less(i, j int) bool

func (ClientNameSorter) Swap

func (a ClientNameSorter) Swap(i, j int)

Jump to

Keyboard shortcuts

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