download

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 13 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 (*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
}

Jump to

Keyboard shortcuts

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