github

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareForGetJCLIAsset

func PrepareForGetJCLIAsset(ver string) (client *github.Client, teardown func())

PrepareForGetJCLIAsset only for test

func PrepareForGetLatestJCLIAsset

func PrepareForGetLatestJCLIAsset() (client *github.Client, teardown func())

PrepareForGetLatestJCLIAsset only for test

func PrepareForGetLatestReleaseAsset

func PrepareForGetLatestReleaseAsset() (client *github.Client, teardown func())

PrepareForGetLatestReleaseAsset only for test

func PrepareForGetReleaseAssetByTagName

func PrepareForGetReleaseAssetByTagName() (client *github.Client, teardown func())

PrepareForGetReleaseAssetByTagName only for test

Types

type ReleaseAsset

type ReleaseAsset struct {
	TagName string
	Body    string
}

ReleaseAsset is the asset from GitHub release

type ReleaseClient

type ReleaseClient struct {
	Client *github.Client
	Org    string
	Repo   string
}

ReleaseClient is the client of jcli github

func (*ReleaseClient) GetJCLIAsset

func (g *ReleaseClient) GetJCLIAsset(tagName string) (*ReleaseAsset, error)

GetJCLIAsset returns the asset from a tag name

func (*ReleaseClient) GetLatestJCLIAsset

func (g *ReleaseClient) GetLatestJCLIAsset() (*ReleaseAsset, error)

GetLatestJCLIAsset returns the latest jcli asset

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) Init

func (g *ReleaseClient) Init()

Init init the GitHub client

Jump to

Keyboard shortcuts

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