Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Download ¶
type Download struct {
// contains filtered or unexported fields
}
Download can issue GET requests to download assets from a remote endpoint.
func (*Download) Get ¶
Get issues a GET request to the remote endpoint to download the promdump TAR file, to the localDir directory. If non-empty, it also fetches the SHA256 sum file from the specifed endpoint, and used that to verified the content of the downloaded TAR file. If the file is already present on the local file system, then the download will be skipped, unless force is set to true to trigger a re-download. The content of the file is then read and returned. Caller is responsible for closing the returned ReadCloser.
Click to show internal directories.
Click to hide internal directories.