Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildHashicorpUrl ¶
Returns a Hashicorp URL.
Example:
("packer", "1.7.4", "windows", "amd64") -> "https://releases.hashicorp.com/packer/1.7.4/packer_1.7.4_windows_amd64.zip"
func Download ¶
Downloads the associated file from the given URL to the given path. Sends the number of bytes downloaded to the given channel.
Example:
("https://releases.hashicorp.com/packer/1.7.4/packer_1.7.4_windows_amd64.zip", "/home/dev/download", bytesDownloadedChan) -> nil
func GetContentLength ¶
Returns the content length of the given URL.
Example:
("https://releases.hashicorp.com/packer/1.7.4/packer_1.7.4_windows_amd64.zip") -> 123456789, nil
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.