Documentation
¶
Index ¶
- type Client
- func (c *Client) DownloadAndExtract(info *ReleaseInfo, destDir string) error
- func (c *Client) DownloadAndExtractWithStrictVerification(info *ReleaseInfo, destDir string) error
- func (c *Client) GetLatestRelease() (*ReleaseInfo, error)
- func (c *Client) GetManifest() (*Manifest, error)
- func (c *Client) GetManifestForVersion(version string) (*Manifest, error)
- func (c *Client) GetReleaseByTag(tag string) (*ReleaseInfo, error)
- type Manifest
- type ReleaseInfo
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 NewClientWithURL ¶ added in v0.3.0
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 (*Client) GetManifestForVersion ¶
func (*Client) GetReleaseByTag ¶
func (c *Client) GetReleaseByTag(tag string) (*ReleaseInfo, error)
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. |
Click to show internal directories.
Click to hide internal directories.