githubservice

package
v0.0.0-...-491220e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 8 Imported by: 0

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

func (g GitHubService) ListMembersByRole(role enums.Role) ([]*github.User, error)

ListMembersByRole returns GitHub users based on role (admin/member).

func (GitHubService) RemoveMembers

func (g GitHubService) RemoveMembers(members []string) error

RemoveMembers removes members from orgName.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL