client

package
v0.0.0-...-e61e643 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(token string) *github.Client

New returns a github Client which can perform Github API operations. If `token` is empty, a non-authenticated client will be created. This should be used sparingly where possible as you only get 60 requests/hour like that (IP locked).

Types

type TrimmedRepository

type TrimmedRepository struct {
	Name        *string           `json:"name"`
	Description *string           `json:"description"`
	Private     *bool             `json:"private"`
	HTMLURL     *string           `json:"html_url"`
	CreatedAt   *github.Timestamp `json:"created_at"`
	UpdatedAt   *github.Timestamp `json:"updated_at"`
	PushedAt    *github.Timestamp `json:"pushed_at"`
	Fork        *bool             `json:"fork"`
	FullName    *string           `json:"full_name"`
	Permissions *map[string]bool  `json:"permissions"`
}

TrimmedRepository represents a cut-down version of github.Repository with only the keys the end-user is likely to want.

func TrimRepository

func TrimRepository(repo *github.Repository) TrimmedRepository

TrimRepository trims a github repo into important fields only.

Jump to

Keyboard shortcuts

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