status

package
v0.0.0-...-a002913 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2015 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatOneline

func FormatOneline(value interface{}) ([]byte, error)

FormatOneline returns a brief list of units and their subordinates. Subordinates will be indented 2 spaces and listed under their superiors.

func FormatOnelineV2

func FormatOnelineV2(value interface{}) ([]byte, error)

FormatOnelineV2 returns a brief list of units and their subordinates. Subordinates will be indented 2 spaces and listed under their superiors. This format works with version 2 of the CLI.

func FormatSummary

func FormatSummary(value interface{}) ([]byte, error)

FormatSummary returns a summary of the current environment including the following information: - Headers:

  • All subnets the environment occupies.
  • All ports the environment utilizes.

- Sections:

  • Machines: Displays total #, and then the # in each state.
  • Units: Displays total #, and then # in each state.
  • Services: Displays total #, their names, and how many of each are exposed.

func FormatTabular

func FormatTabular(value interface{}) ([]byte, error)

FormatTabular returns a tabular summary of machines, services, and units. Any subordinate items are indented by two spaces beneath their superior.

Types

type StatusCommand

type StatusCommand struct {
	envcmd.EnvCommandBase
	// contains filtered or unexported fields
}

func (*StatusCommand) Info

func (c *StatusCommand) Info() *cmd.Info

func (*StatusCommand) Init

func (c *StatusCommand) Init(args []string) error

func (*StatusCommand) Run

func (c *StatusCommand) Run(ctx *cmd.Context) error

func (*StatusCommand) SetFlags

func (c *StatusCommand) SetFlags(f *gnuflag.FlagSet)

type StatusHistoryCommand

type StatusHistoryCommand struct {
	envcmd.EnvCommandBase
	// contains filtered or unexported fields
}

func (*StatusHistoryCommand) Info

func (c *StatusHistoryCommand) Info() *cmd.Info

func (*StatusHistoryCommand) Init

func (c *StatusHistoryCommand) Init(args []string) error

func (*StatusHistoryCommand) Run

func (c *StatusHistoryCommand) Run(ctx *cmd.Context) error

func (*StatusHistoryCommand) SetFlags

func (c *StatusHistoryCommand) SetFlags(f *gnuflag.FlagSet)

Jump to

Keyboard shortcuts

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