Documentation ¶
Index ¶
- Constants
- func NewDrain(action structs.Action, client *api.Client) *drain
- func NewInfo(action structs.Action, client *api.Client, query *api.QueryOptions) *info
- func NewList(action structs.Action, client *api.Client, query *api.QueryOptions) *list
- func NewRemove(action structs.Action, client *api.Client) *remove
- func NewStats(action structs.Action, client *api.Client) *stats
- type ClientNameSorter
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.