charmcmd

package
v0.0.0-...-0000000 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2016 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSubCommand

func RegisterSubCommand(newCommand func(CharmstoreSpec) cmd.Command)

RegisterSubCommand adds the provided func to the set of those that will be called when the juju command runs. Each returned command will be registered with the identified "juju" sub-supercommand.

Types

type CharmstoreClient

type CharmstoreClient interface {
	// TODO(ericsnow) Embed github.com/juju/juju/charmstore.Client.
	io.Closer
}

CharmstoreClient exposes the functionality of the charm store client.

type CharmstoreSpec

type CharmstoreSpec interface {
	// Connect connects to the specified charm store.
	Connect() (CharmstoreClient, error)
}

CharmstoreSpec provides the functionality needed to open a charm store client.

type Command

type Command struct {
	cmd.SuperCommand
}

Command is the top-level command wrapping all backups functionality.

func NewSuperCommand

func NewSuperCommand() *Command

NewSuperCommand returns a new charm super-command.

type CommandBase

type CommandBase struct {
	cmd.CommandBase
	// contains filtered or unexported fields
}

CommandBase is the type that should be embedded in "juju charm" sub-commands.

func NewCommandBase

func NewCommandBase(spec CharmstoreSpec) *CommandBase

NewCommandBase returns a new CommandBase.

func (*CommandBase) Connect

func (c *CommandBase) Connect() (CharmstoreClient, error)

Connect implements CommandBase.

Source Files

  • charm.go
  • store.go
  • sub.go

Jump to

Keyboard shortcuts

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