Documentation ¶
Overview ¶
Package releases is a helper to determine which binaries to download for end to end tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
func DownloadLatest ¶
func DownloadLatest(ctx context.Context, conf DownloadConfig) (string, error)
DownloadLatest is a helper that will download the latest test binary
Types ¶
type DownloadConfig ¶
type DownloadConfig struct { // BaseURL is the url of the file binary release file server BaseURL string // Which is the application to download Which string // Binary is the binary to download. If empty it will default to the value of Which Binary string // Pinned if set will use this version to download Pinned string // Dir is the directory to download into, if empty will default to ../bin Dir string }
DownloadConfig is the configuration for the DownloadLatest helper
type Releases ¶
type Releases struct {
// contains filtered or unexported fields
}
Releases helps find the latest release and download URL for artifacts using the execution release structure.
func (*Releases) ResolveURL ¶
ResolveURL gets the raw download URL for a release, based on the requirements (version, OS, arch)
func (*Releases) ResolveURLs ¶
ResolveURLs gets the raw download URLs for all binaries of a release, based on the requirements (version, OS, arch)
type Requirements ¶
Click to show internal directories.
Click to hide internal directories.