Documentation ¶
Index ¶
- func CacheCommandPath() (string, error)
- func CacheDownloadPath() (string, error)
- func DownloadToTempFile(r *Request) (string, error)
- func ExeSuffix(platform string, name string) string
- func Exists(filename string) (bool, error)
- func Get(r *Request) (string, error)
- func HttpGet(url string, to io.Writer) error
- func Verify(r *Request, file string) error
- func WithHttpGetReader(url string, action func(io.Reader) error, ...) error
- type Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheCommandPath ¶
func CacheDownloadPath ¶
func DownloadToTempFile ¶
Returns the path on the local file system for the requested exe
Types ¶
type Request ¶
type Request struct { URL string `json:"url,omitempty"` Signature string `json:"signature,omitempty"` Size int64 `json:"size,omitempty"` ExtractZip string `json:"extract-zip,omitempty"` ExtractTgz string `json:"extract-tgz,omitempty"` Uncompress string `json:"uncompress,omitempty"` Platform string `json:"-"` Version string `json:"-"` CommandName string `json:"-"` ForceDownload bool `json:"-"` InfoLog io.Writer `json:"-"` DebugLog io.Writer `json:"-"` Keyring openpgp.EntityList `json:"-"` }
Click to show internal directories.
Click to hide internal directories.