Documentation ¶
Index ¶
- Constants
- type Backend
- type ByMembers
- type ByTeams
- type GH
- func (g *GH) GetActiveMemberTeams() []string
- func (g *GH) GetMatches(lookup string) Matches
- func (g *GH) GetMembers() []Member
- func (g *GH) GetTeamMembers(name string) []string
- func (g *GH) GetTeams() []Team
- func (g *GH) IsMember(lookup string) (string, bool)
- func (g *GH) IsTeam(lookup string) (string, bool)
- func (g *GH) Whoami() (string, error)
- type Info
- type Matches
- type Member
- type Team
- type UsersService
Constants ¶
const (
// GHAllTeam containing all users in GitHub
GHAllTeam = "all"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { GetMatches(string) Matches GetMembers() []Member GetTeams() []Team GetTeamMembers(string) []string GetActiveMemberTeams() []string IsMember(string) (string, bool) IsTeam(string) (string, bool) Whoami() (string, error) }
Backend allows us to have an easy way to get information from GitHub for members and teams
type ByMembers ¶
ByMembers is the type of a "less" function that defines the ordering of its Member arguments.
type ByTeams ¶
ByTeams is the type of a "less" function that defines the ordering of its Team arguments.
type GH ¶
type GH struct { *github.Client UsersService UsersService Info }
GH hosts a client for accessing GH as well as cached Member and Team lists
func NewGitHub ¶
NewGitHub returns an initialized GitHub client to the caller and stored GH members and teams
func (*GH) GetActiveMemberTeams ¶ added in v0.2.0
GetActiveMemberTeams returns a slice of team names
func (*GH) GetMatches ¶
GetMatches will search for a given value as part of a username or team name and return a set of available options for the user.
func (*GH) GetTeamMembers ¶
GetTeamMembers returns a list of members for the provided team name