teams

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Name of the GitHub organization owning our repository.
	GithubOrganization string

	// Github personal access token (PTA) to use for client authentication.
	GithubAuthToken string
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(c Config) (*Service, error)

New instantiates a new teams service.

func (*Service) GetAll

func (s *Service) GetAll() ([]*github.Team, error)

Return all teams in the Github organization.

func (*Service) GetMembers

func (s *Service) GetMembers(teamSlug string) ([]*github.User, error)

Return member users for a team

Jump to

Keyboard shortcuts

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