download

package
v0.0.0-...-fc75a81 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

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

func DownloadIndex(indexURL string) (*paths.Path, error)

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 VerifyFileChecksum

func VerifyFileChecksum(checksum string, filePath *paths.Path) error

VerifyFileChecksum checks if the passed checksum matches the passed file checksum

func VerifyFileSize

func VerifyFileSize(size int64, filePath *paths.Path) error

VerifyFileSize is taken and adapted from https://github.com/arduino/arduino-cli/blob/59b6277a4d6731a1c1579d43aef6df2a46a771d5/arduino/resources/checksums.go

Types

This section is empty.

Jump to

Keyboard shortcuts

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