members

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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FetchInfo   = "NOMAD_FETCH_MEMBER"
	WatchInfo   = "NOMAD_WATCH_MEMBER"
	UnwatchInfo = "NOMAD_UNWATCH_MEMBER"
)
View Source
const (
	WatchList   = "NOMAD_WATCH_MEMBERS"
	UnwatchList = "NOMAD_UNWATCH_MEMBERS"
)

Variables

This section is empty.

Functions

func NewInfo

func NewInfo(action structs.Action, cfg *config.Config, client *api.Client) *info

func NewList

func NewList(action structs.Action, cfg *config.Config, client *api.Client) *list

Types

type AgentMemberWithID

type AgentMemberWithID struct {
	Leader bool
	api.AgentMember
}

AgentMemberWithID is a Wrapper around AgentMember that provides ID field. This is made to keep everything consistent i.e. other types have ID field.

func NewAgentMemberWithID

func NewAgentMemberWithID(member *api.AgentMember) (*AgentMemberWithID, error)

NewAgentMemberWithID will create a new Agent with a pseudo ID

type ClientNameSorter

type ClientNameSorter []*api.NodeListStub

ClientNameSorter sorts planets by name

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)

type MembersNameSorter

type MembersNameSorter []*AgentMemberWithID

MembersNameSorter sorts planets by name

func (MembersNameSorter) Len

func (a MembersNameSorter) Len() int

func (MembersNameSorter) Less

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

func (MembersNameSorter) Swap

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

Jump to

Keyboard shortcuts

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