repo

package
v0.0.0-...-e81158a Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubAuth

type GitHubAuth struct {
	// Username is a GitHub username.
	Username string
	// Token is a GitHub access token.
	Token string
}

GitHubAuth represents authentication data for the GitHub API.

type Repository

type Repository struct {
	// Maintainer is the full name of the repository owner, or
	// username if the real name is unknown.
	Maintainer string
	// URL is the HTML URL of a repository that can be viewed in a
	// webbrowser.
	URL string
}

Repository describes GitHub repository metadata

func GitHub

func GitHub(path string, githubAuth *GitHubAuth) (*Repository, error)

Repo fetches basic metadata of a GitHub repository identified by its import paths. Import paths that are not recognizable GitHub repositories return an error.

func Golang

func Golang(url string) (*Repository, error)

func Honnef

func Honnef(url string) (*Repository, error)

func Info

func Info(path string, gitHubAuth *GitHubAuth) (*Repository, error)

Info returns information about source code repositories based on the import path. Only a few common paths are currently supported.

Jump to

Keyboard shortcuts

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