github

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: AGPL-3.0 Imports: 10 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 {
	Github     *github.Client
	HTTPClient *http.Client
}

func NewClient

func NewClient(client *http.Client) *Client

func (*Client) DownloadGithubReleaseAssets

func (c *Client) DownloadGithubReleaseAssets(cxt context.Context, githubConfig Config,
	version int64) (assetData map[string][]byte, err error)

func (*Client) GetReleaseTagName

func (c *Client) GetReleaseTagName(cxt context.Context, githubConfig Config, version int64) (string, error)

func (*Client) ListAvailableGithubReleases

func (c *Client) ListAvailableGithubReleases(cxt context.Context, githubConfig Config) ([]*github.RepositoryRelease, error)

type Config

type Config struct {
	Owner      string
	Repository string
	Assets     []string
}

func NewConfig

func NewConfig(owner string, repository string, assets []string) Config

Jump to

Keyboard shortcuts

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