Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.