Documentation
¶
Index ¶
- func Download(d *downloader.Downloader) error
- func DownloadFirmware(firmware *firmwareindex.IndexFirmware) (*paths.Path, error)
- func DownloadIndex(indexURL string) (*paths.Path, error)
- func DownloadSketch(loader *firmwareindex.IndexSketch) (*paths.Path, error)
- func DownloadTool(toolRelease *cores.ToolRelease) (*paths.Path, error)
- func VerifyChecksum(checksum string, file io.Reader) error
- func VerifyFileChecksum(checksum string, filePath *paths.Path) error
- func VerifyFileSize(size int64, filePath *paths.Path) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Download ¶
func Download(d *downloader.Downloader) error
Download will take a downloader.Downloader as parameter. It will Download the file specified in the downloader
func DownloadFirmware ¶
func DownloadFirmware(firmware *firmwareindex.IndexFirmware) (*paths.Path, error)
DownloadFirmware downloads and returns the path on the local filesystem of a firmware
func DownloadIndex ¶
DownloadIndex will download the index in the os temp directory
func DownloadSketch ¶
func DownloadSketch(loader *firmwareindex.IndexSketch) (*paths.Path, error)
DownloadSketch downloads and returns the path on the local filesystem of a sketch
func DownloadTool ¶
func DownloadTool(toolRelease *cores.ToolRelease) (*paths.Path, error)
DownloadTool downloads and returns the path on the local filesystem of a tool
func VerifyChecksum ¶
VerifyChecksum is taken and adapted from https://github.com/arduino/arduino-cli/blob/59b6277a4d6731a1c1579d43aef6df2a46a771d5/arduino/resources/checksums.go
func VerifyFileChecksum ¶
VerifyFileChecksum checks if the passed checksum matches the passed file checksum
func VerifyFileSize ¶
VerifyFileSize is taken and adapted from https://github.com/arduino/arduino-cli/blob/59b6277a4d6731a1c1579d43aef6df2a46a771d5/arduino/resources/checksums.go
Types ¶
This section is empty.