listplans

package
v0.0.0-...-8ff1004 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: AGPL-3.0 Imports: 17 Imported by: 0

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.

Jump to

Keyboard shortcuts

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