Documentation ¶
Index ¶
- Variables
- func CreateDeployKey(username, repo, title, key, token string) ([]byte, error)
- func Deauth(token, clientId, clientSecret string) error
- func Emails(token string) ([]byte, error)
- func OrganizationsForAuthenticatedUser(token string) ([]byte, error)
- func Ping(token string) ([]byte, error)
- func RepositoriesForOrg(org, token string) ([]byte, error)
- func RepositoriesForUsername(username, token string) ([]byte, error)
- func User(token string) ([]byte, error)
- type GithubEmail
- type GithubUser
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCommunication = errors.New(`{"errors":["github.communication"]}`) ErrBadStatus = errors.New(`{"errors":["github.bad_status"]}`) ErrUnprocessable = errors.New(`{"errors":["github.unprocessable"]}`) )
View Source
var (
Accept = "application/vnd.github.v3+json"
)
Functions ¶
func CreateDeployKey ¶
func RepositoriesForOrg ¶
func RepositoriesForUsername ¶
Types ¶
type GithubEmail ¶
type GithubUser ¶
type GithubUser struct { Name string Login string Emails []GithubEmail }
func LoadGithubUser ¶
func LoadGithubUser(token string) (*GithubUser, error)
Click to show internal directories.
Click to hide internal directories.