Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubOAuthToken ¶
type GitHubOAuthToken string
GitHubOAuthToken is the type for GitHub OAuth Token (org:admin access).
type GitHubService ¶
type GitHubService struct {
// contains filtered or unexported fields
}
GitHubService is the actual implementation of application.GitHubService interface.
func New ¶
func New(cfg *config.Config, githubOAuthToken GitHubOAuthToken) (*GitHubService, error)
New is the factory for GitHubService.
func (GitHubService) AddAdmins ¶
func (g GitHubService) AddAdmins(admins []string) error
AddAdmins adds members as "admin" role.
func (GitHubService) AddMembers ¶
func (g GitHubService) AddMembers(members []string) error
AddMembers adds members as "member" role.
func (GitHubService) ListMembersByRole ¶
ListMembersByRole returns GitHub users based on role (admin/member).
func (GitHubService) RemoveMembers ¶
func (g GitHubService) RemoveMembers(members []string) error
RemoveMembers removes members from orgName.
Click to show internal directories.
Click to hide internal directories.