Versions in this module Expand all Collapse all v1 v1.1.0 Aug 24, 2025 Changes in this version + func GetUploadSummary(results []*UploadResult) string + func SaveBinaryToFile(data []byte, filePath string) error + type BinaryInfo struct + Architecture string + DownloadURL string + Filename string + LastModified string + Platform string + Size int64 + Version string + type Client struct + AuthToken string + BaseURL string + HTTPClient *http.Client + func NewClient(baseURL string) *Client + func (c *Client) DownloadBinary(version, platform, arch string) ([]byte, error) + func (c *Client) GetLatestBinary() (*BinaryInfo, error) + func (c *Client) ListFiles(major, minor int) (*FilesResponse, error) + func (c *Client) ListVersions() (*VersionsResponse, error) + func (c *Client) SetAuthToken(token string) + func (c *Client) UploadBinary(filePath, version, platform, arch string) (*UploadResponse, error) + type DownloadOptions struct + Architecture string + OutputDir string + OutputFile string + Platform string + Version string + type DownloadResult struct + Architecture string + Error error + FilePath string + Platform string + Size int64 + Success bool + Version string + type Downloader struct + func NewDownloader(baseURL string) *Downloader + func (d *Downloader) DownloadAllPlatforms(version, outputDir string) []*DownloadResult + func (d *Downloader) DownloadBinary(opts DownloadOptions) *DownloadResult + func (d *Downloader) DownloadLatest(outputDir string) *DownloadResult + func (d *Downloader) GetBinaryInfo(version, platform, arch string) (*BinaryInfo, error) + func (d *Downloader) InstallBinary(version, installDir string) *DownloadResult + func (d *Downloader) ListAvailableBinaries(version string) ([]BinaryInfo, error) + func (d *Downloader) ListAvailableVersions() ([]string, error) + type ErrorResponse struct + Error string + Message string + type FilesResponse struct + Count int + Files []BinaryInfo + Major int + Minor int + Success bool + type Release struct + Architecture string + Checksum string + ContentType string + DownloadURL string + FileSize int64 + Filename string + Major int + Minor int + Patch int + Platform string + S3Key string + UploadedAt string + Version string + type UploadOptions struct + Architecture string + FilePath string + Force bool + Platform string + type UploadRequest struct + Architecture string + Checksum string + FileData string + Filename string + Platform string + Version string + type UploadResponse struct + Message string + Release Release + Success bool + type UploadResult struct + Architecture string + DownloadURL string + Error error + Platform string + Success bool + Version string + type Uploader struct + func NewUploader(baseURL, authToken, version string) *Uploader + func (u *Uploader) UploadAllPlatforms(binDir string) []*UploadResult + func (u *Uploader) UploadBinary(opts UploadOptions) *UploadResult + func (u *Uploader) UploadCurrentPlatform(binaryPath string) *UploadResult + func (u *Uploader) ValidateUpload(platform, arch string) error + type VersionsResponse struct + Count int + Success bool + Versions []string