Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader struct { URL string Plugins []*api.Plugin FileServer *httptest.Server MuxServer *httptest.Server }
Downloader wrapps the official Jenkins downloads URL around a PluginsFetcher
func NewDownloader ¶
func NewDownloader(dir string, plugins []*api.Plugin) *Downloader
NewDownloader will return a new fetcher
func (*Downloader) Download ¶
Download will fetch a plugin from the official Jenkins download page and will write it to the provided writer.
func (*Downloader) GetDownloadURL ¶
func (d *Downloader) GetDownloadURL(p *api.Plugin) string
GetDownloadURL prints the URL for the given plugin
Click to show internal directories.
Click to hide internal directories.