gh

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asset

func Asset(ctx context.Context, repo *gogh.Repo, assetID int64) (io.ReadCloser, error)

Asset downloads an asset. Parameters:

  • repo: Target repository.
  • assetID: Target asset ID.

func LatestRelease

func LatestRelease(ctx context.Context, repo *gogh.Repo) (*github.RepositoryRelease, error)

LatestRelease gets the latest release. Parameters:

  • repo: Target repository.

func NewClient

func NewClient(ctx context.Context) (*github.Client, error)

NewClient builds GitHub Client with GitHub API token that is configured.

func Release

func Release(ctx context.Context, repo *gogh.Repo, tag string) (*github.RepositoryRelease, error)

Release gets the tagged release. Parameters:

  • repo: Target repository.
  • tag: Target tag.

Types

This section is empty.

Jump to

Keyboard shortcuts

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