command

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2013 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RPCAddrFlag

func RPCAddrFlag(f *flag.FlagSet) *string

RPCAddrFlag returns a pointer to a string that will be populated when the given flagset is parsed with the RPC address of the Serf.

func RPCClient

func RPCClient(addr string) (*agent.RPCClient, error)

RPCClient returns a new Serf RPC client with the given address.

Types

type EventCommand

type EventCommand struct{}

EventCommand is a Command implementation that queries a running Serf agent what members are part of the cluster currently.

func (*EventCommand) Help

func (c *EventCommand) Help() string

func (*EventCommand) Run

func (c *EventCommand) Run(args []string, ui cli.Ui) int

func (*EventCommand) Synopsis

func (c *EventCommand) Synopsis() string

type JoinCommand

type JoinCommand struct{}

JoinCommand is a Command implementation that tells a running Serf agent to join another.

func (*JoinCommand) Help

func (c *JoinCommand) Help() string

func (*JoinCommand) Run

func (c *JoinCommand) Run(args []string, ui cli.Ui) int

func (*JoinCommand) Synopsis

func (c *JoinCommand) Synopsis() string

type MembersCommand

type MembersCommand struct{}

MembersCommand is a Command implementation that queries a running Serf agent what members are part of the cluster currently.

func (*MembersCommand) Help

func (c *MembersCommand) Help() string

func (*MembersCommand) Run

func (c *MembersCommand) Run(args []string, ui cli.Ui) int

func (*MembersCommand) Synopsis

func (c *MembersCommand) Synopsis() string

type MonitorCommand

type MonitorCommand struct {
	ShutdownCh <-chan struct{}
	// contains filtered or unexported fields
}

MonitorCommand is a Command implementation that queries a running Serf agent what members are part of the cluster currently.

func (*MonitorCommand) Help

func (c *MonitorCommand) Help() string

func (*MonitorCommand) Run

func (c *MonitorCommand) Run(args []string, ui cli.Ui) int

func (*MonitorCommand) Synopsis

func (c *MonitorCommand) Synopsis() string

type VersionCommand

type VersionCommand struct {
	Revision          string
	Version           string
	VersionPrerelease string
}

VersionCommand is a Command implementation prints the version.

func (*VersionCommand) Help

func (c *VersionCommand) Help() string

func (*VersionCommand) Run

func (c *VersionCommand) Run(_ []string, ui cli.Ui) int

func (*VersionCommand) Synopsis

func (c *VersionCommand) Synopsis() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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