cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2017 License: GPL-3.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAttachCommand

func NewAttachCommand() cmd.Command

NewAttachCommand creates a new AttachCommand.

func NewCharmStoreResolver

func NewCharmStoreResolver() *charmStoreResolver

NewcharmStoreResolver creates a new charm store resolver.

func NewPushCommand

func NewPushCommand() cmd.Command

NewPushCommand returns a new PushCommand.

func NewReleaseCommand

func NewReleaseCommand() cmd.Command

NewReleaseCommand creates a new ReleaseCommand.

func NewResumeCommand

func NewResumeCommand() cmd.Command

NewResumeCommand creates a new resumeCommand.

func NewShowCommand

func NewShowCommand() cmd.Command

NewShowCommand creates a new ShowCommand.

func NewShowRevisionsCommand

func NewShowRevisionsCommand() cmd.Command

NewShowRevisionsCommand creates a new ShowRevisionsCommand.

func NewSuspendCommand

func NewSuspendCommand() cmd.Command

NewSuspendCommand creates a new command that can be used to suspend plans.

func WrapPlugin

func WrapPlugin(cmd commandWithDescription) cmd.Command

WrapPlugin returns a wrapped plugin command.

Types

type AttachCommand

type AttachCommand struct {
	CharmResolver charmResolver

	PlanURL   string
	CharmURL  string
	IsDefault bool
	// contains filtered or unexported fields
}

AttachCommand adds a charm to existing plans

func (*AttachCommand) Close

func (s *AttachCommand) Close() error

Close saves the persistent cookie jar used by the specified httpbakery.Client.

func (*AttachCommand) Description

func (c *AttachCommand) Description() string

Description returns a one-line description of the command.

func (*AttachCommand) Info

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

Info implements Command.Info.

func (*AttachCommand) Init

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

Init implements Command.Init.

func (*AttachCommand) NewClient

func (s *AttachCommand) NewClient() (*httpbakery.Client, error)

NewClient returns a new http bakery client for Omnibus commands.

func (*AttachCommand) Run

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

Run implements Command.Run.

func (*AttachCommand) SetFlags

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

SetFlags implements Command.SetFlags.

type PushCommand

type PushCommand struct {
	Filename string
	PlanURL  string
	// contains filtered or unexported fields
}

PushCommand uploads a new plan to the plans service

func (*PushCommand) Close

func (s *PushCommand) Close() error

Close saves the persistent cookie jar used by the specified httpbakery.Client.

func (*PushCommand) Description

func (c *PushCommand) Description() string

Description returns a one-line description of the command.

func (*PushCommand) Info

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

Info implements Command.Info.

func (*PushCommand) Init

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

Init reads and verifies the cli arguments for the PlanAddCommang

func (*PushCommand) NewClient

func (s *PushCommand) NewClient() (*httpbakery.Client, error)

NewClient returns a new http bakery client for Omnibus commands.

func (*PushCommand) Run

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

Run implements Command.Run. Uploads a new plan to the plan service

func (*PushCommand) SetFlags

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

SetFlags implements Command.SetFlags.

type ReleaseCommand

type ReleaseCommand struct {
	Plan string
	// contains filtered or unexported fields
}

ReleaseCommand adds a charm to existing plans

func (*ReleaseCommand) Close

func (s *ReleaseCommand) Close() error

Close saves the persistent cookie jar used by the specified httpbakery.Client.

func (*ReleaseCommand) Description

func (c *ReleaseCommand) Description() string

Description returns a one-line description of the command.

func (*ReleaseCommand) Info

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

Info implements Command.Info.

func (*ReleaseCommand) Init

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

Init implements Command.Init.

func (*ReleaseCommand) NewClient

func (s *ReleaseCommand) NewClient() (*httpbakery.Client, error)

NewClient returns a new http bakery client for Omnibus commands.

func (*ReleaseCommand) Run

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

Run implements Command.Run.

func (*ReleaseCommand) SetFlags

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

SetFlags implements Command.SetFlags.

type ShowCommand

type ShowCommand struct {
	PlanURL        string
	ShowContent    bool
	OnlyDefinition bool
	// contains filtered or unexported fields
}

ShowCommand returns plan details

func (*ShowCommand) Close

func (s *ShowCommand) Close() error

Close saves the persistent cookie jar used by the specified httpbakery.Client.

func (*ShowCommand) Description

func (c *ShowCommand) Description() string

Description returns a one-line description of the command.

func (*ShowCommand) Info

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

Info implements Command.Info.

func (*ShowCommand) Init

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

Init implements Command.Init.

func (*ShowCommand) NewClient

func (s *ShowCommand) NewClient() (*httpbakery.Client, error)

NewClient returns a new http bakery client for Omnibus commands.

func (*ShowCommand) Run

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

Run implements Command.Run.

func (*ShowCommand) SetFlags

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

SetFlags implements Command.SetFlags.

type ShowRevisionsCommand

type ShowRevisionsCommand struct {
	PlanURL string
	// contains filtered or unexported fields
}

ShowRevisionsCommand returns plan details

func (*ShowRevisionsCommand) Close

func (s *ShowRevisionsCommand) Close() error

Close saves the persistent cookie jar used by the specified httpbakery.Client.

func (*ShowRevisionsCommand) Description

func (c *ShowRevisionsCommand) Description() string

Description returns a one-line description of the command.

func (*ShowRevisionsCommand) Info

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

Info implements Command.Info.

func (*ShowRevisionsCommand) Init

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

Init implements Command.Init.

func (*ShowRevisionsCommand) NewClient

func (s *ShowRevisionsCommand) NewClient() (*httpbakery.Client, error)

NewClient returns a new http bakery client for Omnibus commands.

func (*ShowRevisionsCommand) Run

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

Run implements Command.Run.

func (*ShowRevisionsCommand) SetFlags

func (c *ShowRevisionsCommand) 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