Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadDropletCmd ¶
DownloadDropletCmd is the plugin objectx
func NewDownloadDropletCmd ¶
func NewDownloadDropletCmd(initializer PluginInitializer) *DownloadDropletCmd
NewDownloadDropletCmd constructor / factory
func (*DownloadDropletCmd) GetMetadata ¶
func (cmd *DownloadDropletCmd) GetMetadata() plugin.PluginMetadata
GetMetadata returns metatada to the CF cli
func (*DownloadDropletCmd) Run ¶
func (cmd *DownloadDropletCmd) Run(cli plugin.CliConnection, args []string)
Run runs the plugin
type DownloadDropletCmdInitiliazer ¶
type DownloadDropletCmdInitiliazer struct {
// contains filtered or unexported fields
}
DownloadDropletCmdInitiliazer is the default plugin initilization implementation
func NewDownloadDropletCmdInitiliazer ¶
func NewDownloadDropletCmdInitiliazer() *DownloadDropletCmdInitiliazer
NewDownloadDropletCmdInitiliazer provides a factory for initializers
func (*DownloadDropletCmdInitiliazer) InitializePlugin ¶
func (initalizer *DownloadDropletCmdInitiliazer) InitializePlugin( cmd *DownloadDropletCmd, cli plugin.CliConnection) error
InitializePlugin default (and real) implementation. We do it this way because we don't have all the objects we need (the cli) to initialze it in main, but we have to give the CLI back something to call run on, and then we need to be able to test it.
type PluginInitializer ¶
type PluginInitializer interface {
InitializePlugin(cmd *DownloadDropletCmd, cli plugin.CliConnection) error
}
PluginInitializer provides IOC for plugin initialization
Click to show internal directories.
Click to hide internal directories.