download

package
v0.0.0-...-4cd85cd Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHash

func CheckHash(file string, sha string) (bool, error)

CheckHash - Accept a local file path and expected sha256 hash. Returns bool if the hash matches the expected hash.

func Download

func Download(downloadURL string, savePath string) (msg string, err error)

Download a web resource; return file location and errors

func GetChefURL

func GetChefURL() string

GetChefURL will return a platform specific URL from config or a built URL from getChefWebURL

Types

This section is empty.

Jump to

Keyboard shortcuts

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