Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Asset ¶
type Asset struct { Name string `json:"name"` BrowserDownloadURL string `json:"browser_download_url"` }
Asset defines github release asset
type Client ¶
type Client struct{}
Client defines github client
func (*Client) DownloadAsset ¶
DownloadAsset downloads github asset based on the asset api path. Currently, it can only download asset from publicly available repository. `apiPath` follows prefix [https://api.github.com/repos], which can be generated by this provider parser. For more information, check [this](https://docs.github.com/en/rest/releases/releases) documentation.
func (*Client) DownloadRelease ¶
func (*Client) DownloadRelease(ctx context.Context, apiPath string) (*model.RepositoryRelease, error)
DownloadRelease downloads a release based on the API path
Click to show internal directories.
Click to hide internal directories.