listplans

package
v0.0.0-...-6cf1bc9 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2016 License: AGPL-3.0 Imports: 16 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.CommandBase

NewListPlansCommand creates a new ListPlansCommand.

Types

type ListPlansCommand

type ListPlansCommand struct {
	modelcmd.JujuCommandBase

	CharmURL string

	CharmResolver rcmd.CharmResolver
	// 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