Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { CurrentUser(*http.Client) (*github.User, error) Organizations(*http.Client) ([]string, error) Teams(*http.Client) (OrganizationTeams, error) }
Client contains the methods that abstract an API
type OrganizationTeams ¶
OrganizationTeams is a map of organization names and teams
type OrganizationVerifier ¶
type OrganizationVerifier struct {
// contains filtered or unexported fields
}
OrganizationVerifier checks if the current user belongs any of the defined organizations
func NewOrganizationVerifier ¶
func NewOrganizationVerifier(organizations []string, gitHubClient Client) *OrganizationVerifier
NewOrganizationVerifier creates a new instance of OrganizationVerifier
type Provider ¶
Provider abstracts the authentication for github
type TeamVerifier ¶
type TeamVerifier struct {
// contains filtered or unexported fields
}
TeamVerifier checks if the current user belongs any of the defined teams
func NewTeamVerifier ¶
func NewTeamVerifier(teams []Team, gitHubClient Client) *TeamVerifier
NewTeamVerifier creates a new instance of TeamVerifier
Click to show internal directories.
Click to hide internal directories.