github

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: Apache-2.0 Imports: 8 Imported by: 3

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