setmeterstatus

package
v0.0.0-...-4bd6544 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() cmd.Command

New creates a new SetMeterStatusCommand.

Types

type SetMeterStatusClient

type SetMeterStatusClient interface {
	SetMeterStatus(tag, status, info string) error
	Close() error
}

SetMeterStatusClient defines the juju api required by the command.

type SetMeterStatusCommand

type SetMeterStatusCommand struct {
	modelcmd.ModelCommandBase
	Tag        names.Tag
	Status     string
	StatusInfo string
}

SetMeterStatusCommand sets the meter status on an application or unit. Useful for charm authors.

func (*SetMeterStatusCommand) Info

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

Info implements Command.Info.

func (*SetMeterStatusCommand) Init

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

Init reads and verifies the cli arguments for the SetMeterStatusCommand

func (*SetMeterStatusCommand) Run

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

Run implements Command.Run.

func (*SetMeterStatusCommand) SetFlags

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

SetFlags implements Command.SetFlags.

Jump to

Keyboard shortcuts

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