command

package
v0.0.0-...-10ac3df Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2018 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DownloadDropletCmd

type DownloadDropletCmd struct {
	Drop droplet.Droplet
	// contains filtered or unexported fields
}

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

func (*DownloadDropletCmd) Start

func (cmd *DownloadDropletCmd) Start()

Start 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

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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