github

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetSummary

type AssetSummary struct {
	Name          string `json:"name"`
	State         string `json:"state"`
	DownloadCount int    `json:"download_count"`
}

type ReleaseFetcher

type ReleaseFetcher struct {
	// contains filtered or unexported fields
}

func NewReleaseFetcher

func NewReleaseFetcher(ctx context.Context, token string) *ReleaseFetcher

func (*ReleaseFetcher) RepoSummary

func (rf *ReleaseFetcher) RepoSummary(owner, repo string) (RepoSummary, error)

type ReleaseSummary

type ReleaseSummary struct {
	TagName       string         `json:"tag,omitempty"`
	Name          string         `json:"name,omitempty"`
	PublishedAt   time.Time      `json:"published_at,omitempty"`
	User          string         `json:"user,omitempty"`
	ReleaseAssets []AssetSummary `json:"assets,omitempty"`
}

type RepoSummary

type RepoSummary struct {
	Owner    string           `json:"owner,omitempty"`
	Repo     string           `json:"repo,omitempty"`
	Releases []ReleaseSummary `json:"releases,omitempty"`
}

Jump to

Keyboard shortcuts

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