github

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBaseURL = "https://api.github.com/%s"
View Source
const DefaultCallbackURL = "http://ec2-34-212-13-136.us-west-2.compute.amazonaws.com:8088"

Variables

View Source
var (
	REPOS = "repos"
	FILE  = REPOS + "/%s/contents/%s"
)
View Source
var (
	//"contents_url": "https://api.github.com/repos/shankj3/legis_data/contents/{+path}",
	CONTENTS_URL_REPLACE = "{+path}"
)

Functions

func GetGithubClient

func GetGithubClient(creds *pb.VCSCreds) (models.VCSHandler, string, error)

Returns VCS handler for pulling source code and auth token if exists (auth token is needed for code download)

func GetGithubFromHttpClient

func GetGithubFromHttpClient(cli *http.Client) models.VCSHandler

func GetGithubHandler

func GetGithubHandler(cred *pb.VCSCreds, cli ocenet.HttpClient) *githubVCS

func GetTranslator

func GetTranslator() models.Translator

Types

This section is empty.

Jump to

Keyboard shortcuts

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