Documentation ¶
Overview ¶
The listplans package contains implementation of the command that can be used to list plans that are available for a charm.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewListPlansCommand ¶
func NewListPlansCommand() modelcmd.ControllerCommand
NewListPlansCommand creates a new ListPlansCommand.
Types ¶
type ListPlansCommand ¶
type ListPlansCommand struct { modelcmd.ControllerCommandBase CharmURL string // contains filtered or unexported fields }
ListPlansCommand retrieves plans that are available for the specified charm
func (*ListPlansCommand) Info ¶
func (c *ListPlansCommand) Info() *cmd.Info
Info implements Command.Info.
func (*ListPlansCommand) Init ¶
func (c *ListPlansCommand) Init(args []string) error
Init reads and verifies the cli arguments for the ListPlansCommand
func (*ListPlansCommand) Run ¶
func (c *ListPlansCommand) Run(ctx *cmd.Context) (rErr error)
Run implements Command.Run. Retrieves the plan from the plans service. The set of plans to be retrieved can be limited using the plan and isv flags.
func (*ListPlansCommand) SetFlags ¶
func (c *ListPlansCommand) SetFlags(f *gnuflag.FlagSet)
SetFlags implements Command.SetFlags.
Click to show internal directories.
Click to hide internal directories.