Documentation ¶
Index ¶
- type GitHub
- func (g GitHub) DisplayRateLimit(ctx context.Context)
- func (g GitHub) Get(ctx context.Context, owner, repository string) (map[string]interface{}, error)
- func (g GitHub) GetFileContent(ctx context.Context, owner, repository, path string) (string, error)
- func (g GitHub) GetRateLimit(ctx context.Context) (int, error)
- func (g *GitHub) RotateAccessToken()
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 (GitHub) DisplayRateLimit ¶
DisplayRateLimit helps keeping track of GitHub's rate limits.
func (GitHub) Get ¶
Get builds a trimmed down map of the few things we need to know about a repository.
func (GitHub) GetFileContent ¶
GetFileContent loads the file content of the given repository/filename.
func (GitHub) GetRateLimit ¶
GetRateLimit helps keep track of the API rate limit.
func (*GitHub) RotateAccessToken ¶
func (g *GitHub) RotateAccessToken()
Click to show internal directories.
Click to hide internal directories.