Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
func DownloadFile(path *paths.Path, URL string, queryParameter string, label string, downloadCB rpc.DownloadProgressCB, config *downloader.Config, options ...downloader.DownloadOptions) (returnedError error)
DownloadFile downloads a file from a URL into the specified path. An optional config and options may be passed (or nil to use the defaults). A DownloadProgressCB callback function must be passed to monitor download progress. If a not empty queryParameter is passed, it is appended to the URL for analysis purposes.
func GetDownloaderConfig ¶
func GetDownloaderConfig() (*downloader.Config, error)
GetDownloaderConfig returns the downloader configuration based on current settings.
func NewWithConfig ¶
NewWithConfig creates a http client for use in the arduino-cli, with a given configuration
Types ¶
Click to show internal directories.
Click to hide internal directories.