client

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GithubBigQuery

func GithubBigQuery() *uploader.Client

Types

type AssetSummary

type AssetSummary struct {
	Name          string `json:"name"`
	URL           string `json:"url"`
	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) Summary

func (rf *ReleaseFetcher) Summary(h repository.Handle) (RepoSummary, error)

type ReleaseSummary

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

type RepoSummary

type RepoSummary struct {
	PluginName string           `json:"pluginName,omitempty"`
	Owner      string           `json:"owner,omitempty"`
	Repo       string           `json:"repo,omitempty"`
	CreatedAt  time.Time        `json:"created_at,omitempty"`
	Releases   []ReleaseSummary `json:"releases,omitempty"`
}

Jump to

Keyboard shortcuts

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