github

package
v1.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2020 License: Apache-2.0 Imports: 10 Imported by: 3 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset added in v0.2.0

type Asset struct {
	Path string
	URL  string
}

type Client

type Client struct {
	*github.Client
	// contains filtered or unexported fields
}

Client is the client for interacting with the GitHub API

func NewClient added in v0.2.0

func NewClient(owner, repo, token, baseURL, uploadURL string) *Client

NewClient creates and initializes a new GitHubClient

func (*Client) CreateRelease

func (c *Client) CreateRelease(ctx context.Context, input *Release) error

CreateRelease creates a new release object in the GitHub API

func (*Client) GetRelease

func (c *Client) GetRelease(ctx context.Context, tag string) (*Release, error)

GetRelease queries the GitHub API for a specified release object

type Release added in v0.2.0

type Release struct {
	Name        string
	Description string
	Assets      []*Asset
}

Jump to

Keyboard shortcuts

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