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.
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
Click to show internal directories.
Click to hide internal directories.