Documentation
¶
Index ¶
- func NewAttachCommand() cmd.Command
- func NewCharmStoreResolver() *charmStoreResolver
- func NewPushCommand() cmd.Command
- func NewReleaseCommand() cmd.Command
- func NewResumeCommand() cmd.Command
- func NewShowCommand() cmd.Command
- func NewShowRevisionsCommand() cmd.Command
- func NewSuspendCommand() cmd.Command
- func WrapPlugin(cmd commandWithDescription) cmd.Command
- type AttachCommand
- func (s *AttachCommand) Close() error
- func (c *AttachCommand) Description() string
- func (c *AttachCommand) Info() *cmd.Info
- func (c *AttachCommand) Init(args []string) error
- func (s *AttachCommand) NewClient() (*httpbakery.Client, error)
- func (c *AttachCommand) Run(ctx *cmd.Context) error
- func (c *AttachCommand) SetFlags(f *gnuflag.FlagSet)
- type PushCommand
- func (s *PushCommand) Close() error
- func (c *PushCommand) Description() string
- func (c *PushCommand) Info() *cmd.Info
- func (c *PushCommand) Init(args []string) error
- func (s *PushCommand) NewClient() (*httpbakery.Client, error)
- func (c *PushCommand) Run(ctx *cmd.Context) error
- func (c *PushCommand) SetFlags(f *gnuflag.FlagSet)
- type ReleaseCommand
- func (s *ReleaseCommand) Close() error
- func (c *ReleaseCommand) Description() string
- func (c *ReleaseCommand) Info() *cmd.Info
- func (c *ReleaseCommand) Init(args []string) error
- func (s *ReleaseCommand) NewClient() (*httpbakery.Client, error)
- func (c *ReleaseCommand) Run(ctx *cmd.Context) error
- func (c *ReleaseCommand) SetFlags(f *gnuflag.FlagSet)
- type ShowCommand
- func (s *ShowCommand) Close() error
- func (c *ShowCommand) Description() string
- func (c *ShowCommand) Info() *cmd.Info
- func (c *ShowCommand) Init(args []string) error
- func (s *ShowCommand) NewClient() (*httpbakery.Client, error)
- func (c *ShowCommand) Run(ctx *cmd.Context) error
- func (c *ShowCommand) SetFlags(f *gnuflag.FlagSet)
- type ShowRevisionsCommand
- func (s *ShowRevisionsCommand) Close() error
- func (c *ShowRevisionsCommand) Description() string
- func (c *ShowRevisionsCommand) Info() *cmd.Info
- func (c *ShowRevisionsCommand) Init(args []string) error
- func (s *ShowRevisionsCommand) NewClient() (*httpbakery.Client, error)
- func (c *ShowRevisionsCommand) Run(ctx *cmd.Context) error
- func (c *ShowRevisionsCommand) SetFlags(f *gnuflag.FlagSet)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAttachCommand ¶
NewAttachCommand creates a new AttachCommand.
func NewCharmStoreResolver ¶
func NewCharmStoreResolver() *charmStoreResolver
NewcharmStoreResolver creates a new charm store resolver.
func NewReleaseCommand ¶
NewReleaseCommand creates a new ReleaseCommand.
func NewResumeCommand ¶
NewResumeCommand creates a new resumeCommand.
func NewShowRevisionsCommand ¶
NewShowRevisionsCommand creates a new ShowRevisionsCommand.
func NewSuspendCommand ¶
NewSuspendCommand creates a new command that can be used to suspend plans.
func WrapPlugin ¶
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) 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) 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) 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.