command

package
v0.0.0-...-dbfa1ae Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands() map[string]cli.CommandFactory

Commands returns the cli commands

Types

type Meta

type Meta struct {
	Ui cli.Ui
	// contains filtered or unexported fields
}

func (*Meta) Client

func (m *Meta) Client() *api.Client

func (*Meta) FlagSet

func (m *Meta) FlagSet(n string) *flag.FlagSet

type StatusCommand

type StatusCommand struct {
}

func (*StatusCommand) Help

func (s *StatusCommand) Help() string

func (*StatusCommand) Run

func (s *StatusCommand) Run(args []string) int

func (*StatusCommand) Synopsis

func (s *StatusCommand) Synopsis() string

type StatusLeaderCommand

type StatusLeaderCommand struct {
	Meta
}

func (*StatusLeaderCommand) Help

func (s *StatusLeaderCommand) Help() string

func (*StatusLeaderCommand) Run

func (s *StatusLeaderCommand) Run(args []string) int

func (*StatusLeaderCommand) Synopsis

func (s *StatusLeaderCommand) Synopsis() string

type StatusPeersCommand

type StatusPeersCommand struct {
	Meta
}

func (*StatusPeersCommand) Help

func (s *StatusPeersCommand) Help() string

func (*StatusPeersCommand) Run

func (s *StatusPeersCommand) Run(args []string) int

func (*StatusPeersCommand) Synopsis

func (s *StatusPeersCommand) Synopsis() string

type VersionCommand

type VersionCommand struct {
	Ui cli.Ui
}

VersionCommand is the command to show the version of the agent

func (*VersionCommand) Help

func (c *VersionCommand) Help() string

Help implements the cli.Command interface

func (*VersionCommand) Run

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

Run implements the cli.Command interface

func (*VersionCommand) Synopsis

func (c *VersionCommand) Synopsis() string

Synopsis implements the cli.Command interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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