Help us shape the future of Go! Take the 2026 Go Developer Survey

download

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func NewClientWithURL added in v0.3.0

func NewClientWithURL(apiURL string) (*Client, error)

NewClientWithURL returns a client of the GitHub API at apiURL instead of api.github.com, for example a fake one in tests.

func (*Client) DownloadAndExtract

func (c *Client) DownloadAndExtract(info *ReleaseInfo, destDir string) error

func (*Client) DownloadAndExtractWithStrictVerification

func (c *Client) DownloadAndExtractWithStrictVerification(info *ReleaseInfo, destDir string) error

func (*Client) GetLatestRelease

func (c *Client) GetLatestRelease() (*ReleaseInfo, error)

func (*Client) GetManifest

func (c *Client) GetManifest() (*Manifest, error)

func (*Client) GetManifestForVersion

func (c *Client) GetManifestForVersion(version string) (*Manifest, error)

func (*Client) GetReleaseByTag

func (c *Client) GetReleaseByTag(tag string) (*ReleaseInfo, error)

type Manifest

type Manifest struct {
	MinCLIVersion string `json:"min_cli_version"`
}

type ReleaseInfo

type ReleaseInfo struct {
	Version      string
	AssetName    string
	AssetURL     string
	AssetSize    int64
	ChecksumURL  string
	HasChecksums bool
}

Directories

Path Synopsis
Package downloadtest serves a fake GitHub API with Umono releases, so the tests of the commands that download Umono do not go to GitHub.
Package downloadtest serves a fake GitHub API with Umono releases, so the tests of the commands that download Umono do not go to GitHub.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL