Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CFDownloader ¶
type CFDownloader struct { Cli plugin.CliConnection Writer FileWriter }
CFDownloader real implementation to download droplets.
func (*CFDownloader) GetDroplet ¶
func (downloader *CFDownloader) GetDroplet(guid string) ([]byte, error)
GetDroplet from CF
func (*CFDownloader) SaveDropletToFile ¶
func (downloader *CFDownloader) SaveDropletToFile(filePath string, data []byte) error
SaveDropletToFile writes a downloaded droplet to file
type CFDroplet ¶
type CFDroplet struct { Cli plugin.CliConnection Downloader Downloader }
CFDroplet utility for saving and whatnot.
func NewCFDroplet ¶
func NewCFDroplet(cli plugin.CliConnection, downloader Downloader) *CFDroplet
NewCFDroplet builds a new CF droplet
func (*CFDroplet) GetDownloader ¶
func (d *CFDroplet) GetDownloader() *Downloader
GetDownloader attached to this dropplet.
type Downloader ¶
type Downloader interface { GetDroplet(guid string) ([]byte, error) SaveDropletToFile(filePath string, data []byte) error }
Downloader interaface for implementing downloaders.
Click to show internal directories.
Click to hide internal directories.