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 ¶
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)
Click to show internal directories.
Click to hide internal directories.