Documentation
¶
Overview ¶
Package team synchronises emails with GitHub teams.
You must provide a discovery service in order to use this adapter. This is because converting email addresses to GitHub usernames isn't straightforward. At OVO, we enforce SAML for our GitHub users, and have provided a SAML -> GitHub Username discovery service, but you may need to write your own.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GitHubDiscovery ¶
type GitHubDiscovery interface {
GetUsernameFromEmail(context.Context, []string) ([]string, error)
GetEmailFromUsername(context.Context, []string) ([]string, error)
}
GitHubDiscovery is required because there are multiple ways to convert a GitHub email into a username. At OVO we use SAML, but other organisations may use public emails or another mechanism.
type Team ¶
type Team struct {
// contains filtered or unexported fields
}
func New ¶
func New(client *github.Client, discovery GitHubDiscovery, org string, slug string, optsFn ...func(*Team)) *Team
New instantiates a new GitHub Team adapter.
Click to show internal directories.
Click to hide internal directories.