command

package
v0.0.0-...-8fafcef Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2014 License: MPL-2.0 Imports: 6 Imported by: 1

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 Watchdog.

func RPCClient

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

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

Types

type RegisterCommand

type RegisterCommand struct {
	Ui cli.Ui
}

RegisterCommand registers a new process from a given config file

func (*RegisterCommand) Help

func (c *RegisterCommand) Help() string

func (*RegisterCommand) Run

func (c *RegisterCommand) Run(args []string) int

func (*RegisterCommand) Synopsis

func (c *RegisterCommand) Synopsis() string

type StartCommand

type StartCommand struct {
	Ui cli.Ui
}

StartCommand starts a registered process

func (*StartCommand) Help

func (c *StartCommand) Help() string

func (*StartCommand) Run

func (c *StartCommand) Run(args []string) int

func (*StartCommand) Synopsis

func (c *StartCommand) Synopsis() string

type VersionCommand

type VersionCommand struct {
	Revision          string
	Version           string
	VersionPrerelease string
	Ui                cli.Ui
}

VersionCommand is a Command implementation prints the version.

func (*VersionCommand) Help

func (c *VersionCommand) Help() string

func (*VersionCommand) Run

func (c *VersionCommand) Run(_ []string) 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