github

package
v0.0.0-...-e0f7ac1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHub

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

func NewWithConfig

func NewWithConfig(ctx context.Context, cfg *config.GitHubConfig) (*GitHub, error)

func (GitHub) DisplayRateLimit

func (g GitHub) DisplayRateLimit(ctx context.Context)

DisplayRateLimit helps keeping track of GitHub's rate limits.

func (GitHub) Get

func (g GitHub) Get(ctx context.Context, owner, repository string) (map[string]interface{}, error)

Get builds a trimmed down map of the few things we need to know about a repository.

func (GitHub) GetFileContent

func (g GitHub) GetFileContent(ctx context.Context, owner, repository, path string) (string, error)

GetFileContent loads the file content of the given repository/filename.

func (GitHub) GetRateLimit

func (g GitHub) GetRateLimit(ctx context.Context) (int, error)

GetRateLimit helps keep track of the API rate limit.

func (*GitHub) RotateAccessToken

func (g *GitHub) RotateAccessToken()

Jump to

Keyboard shortcuts

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