Documentation ¶
Index ¶
- func PrepareForGetJCLIAsset(ver string) (client *github.Client, teardown func())
- func PrepareForGetLatestJCLIAsset() (client *github.Client, teardown func())
- func PrepareForGetLatestReleaseAsset() (client *github.Client, teardown func())
- func PrepareForGetReleaseAssetByTagName() (client *github.Client, teardown func())
- type Release
- type ReleaseAsset
- type ReleaseClient
- func (g *ReleaseClient) GetJCLIAsset(tagName string) (*ReleaseAsset, error)
- func (g *ReleaseClient) GetLatestReleaseAsset(owner, repo string) (ra *ReleaseAsset, err error)
- func (g *ReleaseClient) GetReleaseAssetByTagName(owner, repo, tagName string) (ra *ReleaseAsset, err error)
- func (g *ReleaseClient) GetReleaseList(owner, repo string, count int) (list []Release, err error)
- func (g *ReleaseClient) GetTagList(owner, repo string, count int) (list []Tag, err error)
- func (g *ReleaseClient) Init()
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrepareForGetJCLIAsset ¶
PrepareForGetJCLIAsset only for test
func PrepareForGetLatestJCLIAsset ¶
PrepareForGetLatestJCLIAsset only for test
func PrepareForGetLatestReleaseAsset ¶
PrepareForGetLatestReleaseAsset only for test
func PrepareForGetReleaseAssetByTagName ¶
PrepareForGetReleaseAssetByTagName only for test
Types ¶
type ReleaseAsset ¶
ReleaseAsset is the asset from GitHub release
type ReleaseClient ¶
ReleaseClient is the client of GitHub
func (*ReleaseClient) GetJCLIAsset ¶
func (g *ReleaseClient) GetJCLIAsset(tagName string) (*ReleaseAsset, error)
GetJCLIAsset returns the asset from a tag name
func (*ReleaseClient) GetLatestReleaseAsset ¶
func (g *ReleaseClient) GetLatestReleaseAsset(owner, repo string) (ra *ReleaseAsset, err error)
GetLatestReleaseAsset returns the latest release asset
func (*ReleaseClient) GetReleaseAssetByTagName ¶
func (g *ReleaseClient) GetReleaseAssetByTagName(owner, repo, tagName string) (ra *ReleaseAsset, err error)
GetReleaseAssetByTagName returns the release asset by tag name
func (*ReleaseClient) GetReleaseList ¶ added in v0.0.14
func (g *ReleaseClient) GetReleaseList(owner, repo string, count int) (list []Release, err error)
GetReleaseList returns a list of release
func (*ReleaseClient) GetTagList ¶ added in v0.0.14
func (g *ReleaseClient) GetTagList(owner, repo string, count int) (list []Tag, err error)
GetTagList returns a list of tag
Click to show internal directories.
Click to hide internal directories.