Documentation ¶
Index ¶
Constants ¶
View Source
const Namespace = "github"
Namespace is the package namespace, used for things like envvars.
Variables ¶
ErrUserNotExists is returned by a RepoLister when it is unable to locate either a user or organization with a given username.
Functions ¶
func NewClient ¶
func NewClient(opts ...func(*ClientConfig)) (*github.Client, error)
NewClient creates a new GitHub client.
If the environment contains a 'GITHUB_TOKEN' variable, then an authenticated client will be created; otherwise, the client will be unauthenticated.
Types ¶
type ClientConfig ¶
ClientConfig configures a github.Client.
type Lister ¶
type Lister struct {
// contains filtered or unexported fields
}
A Lister can list GitHub repos containing Go for a particular user / organization.
func NewLister ¶
func NewLister( c *github.Client, username string, opts ...func(*ListerConfig), ) *Lister
NewLister creates a new Service that lists repositories for the specified user.
func (*Lister) DeriveRepoFullName ¶
DeriveRepoFullName derives the full name of a repo from a partial name.
Click to show internal directories.
Click to hide internal directories.