Documentation ¶
Index ¶
- Constants
- func New(database db.Database, auditLogger auditlogger.AuditLogger, org, domain string, ...) *githubTeamReconciler
- func NewFromConfig(ctx context.Context, database db.Database, cfg *config.Config, ...) (reconcilers.Reconciler, error)
- func NewGitHubAuthClient(ctx context.Context, authEndpoint string, tokenSource oauth2.TokenSource) *http.Client
- type ExternalIdentity
- type ExternalIdentitySamlAttributes
- type GitHubUser
- type GraphClient
- type LookupGitHubSamlUserByEmail
- type LookupGitHubSamlUserByGitHubUsername
- type MockGraphClient
- type MockGraphClient_Expecter
- type MockGraphClient_Query_Call
- func (_c *MockGraphClient_Query_Call) Return(_a0 error) *MockGraphClient_Query_Call
- func (_c *MockGraphClient_Query_Call) Run(run func(ctx context.Context, q interface{}, variables map[string]interface{})) *MockGraphClient_Query_Call
- func (_c *MockGraphClient_Query_Call) RunAndReturn(run func(context.Context, interface{}, map[string]interface{}) error) *MockGraphClient_Query_Call
- type MockTeamsService
- func (_m *MockTeamsService) AddTeamMembershipBySlug(ctx context.Context, org string, slug string, user string, ...) (*github.Membership, *github.Response, error)
- func (_m *MockTeamsService) CreateOrUpdateIDPGroupConnectionsBySlug(ctx context.Context, org string, team string, opts github.IDPGroupList) (*github.IDPGroupList, *github.Response, error)
- func (_m *MockTeamsService) CreateTeam(ctx context.Context, org string, team github.NewTeam) (*github.Team, *github.Response, error)
- func (_m *MockTeamsService) DeleteTeamBySlug(ctx context.Context, org string, slug string) (*github.Response, error)
- func (_m *MockTeamsService) EXPECT() *MockTeamsService_Expecter
- func (_m *MockTeamsService) EditTeamBySlug(ctx context.Context, org string, slug string, team github.NewTeam, ...) (*github.Team, *github.Response, error)
- func (_m *MockTeamsService) GetTeamBySlug(ctx context.Context, org string, slug string) (*github.Team, *github.Response, error)
- func (_m *MockTeamsService) ListTeamMembersBySlug(ctx context.Context, org string, slug string, ...) ([]*github.User, *github.Response, error)
- func (_m *MockTeamsService) ListTeamReposBySlug(ctx context.Context, org string, slug string, opts *github.ListOptions) ([]*github.Repository, *github.Response, error)
- func (_m *MockTeamsService) RemoveTeamMembershipBySlug(ctx context.Context, org string, slug string, user string) (*github.Response, error)
- type MockTeamsService_AddTeamMembershipBySlug_Call
- func (_c *MockTeamsService_AddTeamMembershipBySlug_Call) Return(_a0 *github.Membership, _a1 *github.Response, _a2 error) *MockTeamsService_AddTeamMembershipBySlug_Call
- func (_c *MockTeamsService_AddTeamMembershipBySlug_Call) Run(run func(ctx context.Context, org string, slug string, user string, ...)) *MockTeamsService_AddTeamMembershipBySlug_Call
- func (_c *MockTeamsService_AddTeamMembershipBySlug_Call) RunAndReturn(...) *MockTeamsService_AddTeamMembershipBySlug_Call
- type MockTeamsService_CreateOrUpdateIDPGroupConnectionsBySlug_Call
- func (_c *MockTeamsService_CreateOrUpdateIDPGroupConnectionsBySlug_Call) Return(_a0 *github.IDPGroupList, _a1 *github.Response, _a2 error) *MockTeamsService_CreateOrUpdateIDPGroupConnectionsBySlug_Call
- func (_c *MockTeamsService_CreateOrUpdateIDPGroupConnectionsBySlug_Call) Run(...) *MockTeamsService_CreateOrUpdateIDPGroupConnectionsBySlug_Call
- func (_c *MockTeamsService_CreateOrUpdateIDPGroupConnectionsBySlug_Call) RunAndReturn(...) *MockTeamsService_CreateOrUpdateIDPGroupConnectionsBySlug_Call
- type MockTeamsService_CreateTeam_Call
- func (_c *MockTeamsService_CreateTeam_Call) Return(_a0 *github.Team, _a1 *github.Response, _a2 error) *MockTeamsService_CreateTeam_Call
- func (_c *MockTeamsService_CreateTeam_Call) Run(run func(ctx context.Context, org string, team github.NewTeam)) *MockTeamsService_CreateTeam_Call
- func (_c *MockTeamsService_CreateTeam_Call) RunAndReturn(...) *MockTeamsService_CreateTeam_Call
- type MockTeamsService_DeleteTeamBySlug_Call
- func (_c *MockTeamsService_DeleteTeamBySlug_Call) Return(_a0 *github.Response, _a1 error) *MockTeamsService_DeleteTeamBySlug_Call
- func (_c *MockTeamsService_DeleteTeamBySlug_Call) Run(run func(ctx context.Context, org string, slug string)) *MockTeamsService_DeleteTeamBySlug_Call
- func (_c *MockTeamsService_DeleteTeamBySlug_Call) RunAndReturn(run func(context.Context, string, string) (*github.Response, error)) *MockTeamsService_DeleteTeamBySlug_Call
- type MockTeamsService_EditTeamBySlug_Call
- func (_c *MockTeamsService_EditTeamBySlug_Call) Return(_a0 *github.Team, _a1 *github.Response, _a2 error) *MockTeamsService_EditTeamBySlug_Call
- func (_c *MockTeamsService_EditTeamBySlug_Call) Run(...) *MockTeamsService_EditTeamBySlug_Call
- func (_c *MockTeamsService_EditTeamBySlug_Call) RunAndReturn(...) *MockTeamsService_EditTeamBySlug_Call
- type MockTeamsService_Expecter
- func (_e *MockTeamsService_Expecter) AddTeamMembershipBySlug(ctx interface{}, org interface{}, slug interface{}, user interface{}, ...) *MockTeamsService_AddTeamMembershipBySlug_Call
- func (_e *MockTeamsService_Expecter) CreateOrUpdateIDPGroupConnectionsBySlug(ctx interface{}, org interface{}, team interface{}, opts interface{}) *MockTeamsService_CreateOrUpdateIDPGroupConnectionsBySlug_Call
- func (_e *MockTeamsService_Expecter) CreateTeam(ctx interface{}, org interface{}, team interface{}) *MockTeamsService_CreateTeam_Call
- func (_e *MockTeamsService_Expecter) DeleteTeamBySlug(ctx interface{}, org interface{}, slug interface{}) *MockTeamsService_DeleteTeamBySlug_Call
- func (_e *MockTeamsService_Expecter) EditTeamBySlug(ctx interface{}, org interface{}, slug interface{}, team interface{}, ...) *MockTeamsService_EditTeamBySlug_Call
- func (_e *MockTeamsService_Expecter) GetTeamBySlug(ctx interface{}, org interface{}, slug interface{}) *MockTeamsService_GetTeamBySlug_Call
- func (_e *MockTeamsService_Expecter) ListTeamMembersBySlug(ctx interface{}, org interface{}, slug interface{}, opts interface{}) *MockTeamsService_ListTeamMembersBySlug_Call
- func (_e *MockTeamsService_Expecter) ListTeamReposBySlug(ctx interface{}, org interface{}, slug interface{}, opts interface{}) *MockTeamsService_ListTeamReposBySlug_Call
- func (_e *MockTeamsService_Expecter) RemoveTeamMembershipBySlug(ctx interface{}, org interface{}, slug interface{}, user interface{}) *MockTeamsService_RemoveTeamMembershipBySlug_Call
- type MockTeamsService_GetTeamBySlug_Call
- func (_c *MockTeamsService_GetTeamBySlug_Call) Return(_a0 *github.Team, _a1 *github.Response, _a2 error) *MockTeamsService_GetTeamBySlug_Call
- func (_c *MockTeamsService_GetTeamBySlug_Call) Run(run func(ctx context.Context, org string, slug string)) *MockTeamsService_GetTeamBySlug_Call
- func (_c *MockTeamsService_GetTeamBySlug_Call) RunAndReturn(...) *MockTeamsService_GetTeamBySlug_Call
- type MockTeamsService_ListTeamMembersBySlug_Call
- func (_c *MockTeamsService_ListTeamMembersBySlug_Call) Return(_a0 []*github.User, _a1 *github.Response, _a2 error) *MockTeamsService_ListTeamMembersBySlug_Call
- func (_c *MockTeamsService_ListTeamMembersBySlug_Call) Run(run func(ctx context.Context, org string, slug string, ...)) *MockTeamsService_ListTeamMembersBySlug_Call
- func (_c *MockTeamsService_ListTeamMembersBySlug_Call) RunAndReturn(...) *MockTeamsService_ListTeamMembersBySlug_Call
- type MockTeamsService_ListTeamReposBySlug_Call
- func (_c *MockTeamsService_ListTeamReposBySlug_Call) Return(_a0 []*github.Repository, _a1 *github.Response, _a2 error) *MockTeamsService_ListTeamReposBySlug_Call
- func (_c *MockTeamsService_ListTeamReposBySlug_Call) Run(...) *MockTeamsService_ListTeamReposBySlug_Call
- func (_c *MockTeamsService_ListTeamReposBySlug_Call) RunAndReturn(...) *MockTeamsService_ListTeamReposBySlug_Call
- type MockTeamsService_RemoveTeamMembershipBySlug_Call
- func (_c *MockTeamsService_RemoveTeamMembershipBySlug_Call) Return(_a0 *github.Response, _a1 error) *MockTeamsService_RemoveTeamMembershipBySlug_Call
- func (_c *MockTeamsService_RemoveTeamMembershipBySlug_Call) Run(run func(ctx context.Context, org string, slug string, user string)) *MockTeamsService_RemoveTeamMembershipBySlug_Call
- func (_c *MockTeamsService_RemoveTeamMembershipBySlug_Call) RunAndReturn(run func(context.Context, string, string, string) (*github.Response, error)) *MockTeamsService_RemoveTeamMembershipBySlug_Call
- type TeamsService
Constants ¶
const (
Name = sqlc.ReconcilerNameGithubTeam
)
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(database db.Database, auditLogger auditlogger.AuditLogger, org, domain string, teamsService TeamsService, graphClient GraphClient, log logger.Logger) *githubTeamReconciler
func NewFromConfig ¶
func NewGitHubAuthClient ¶
Types ¶
type ExternalIdentity ¶
type ExternalIdentity struct { User GitHubUser SamlIdentity ExternalIdentitySamlAttributes }
type GitHubUser ¶
type GraphClient ¶
type LookupGitHubSamlUserByEmail ¶
type LookupGitHubSamlUserByEmail struct { Organization struct { SamlIdentityProvider struct { ExternalIdentities struct { Nodes []ExternalIdentity } `graphql:"externalIdentities(first: 1, userName: $username)"` } } `graphql:"organization(login: $org)"` }
type LookupGitHubSamlUserByGitHubUsername ¶
type LookupGitHubSamlUserByGitHubUsername struct { Organization struct { SamlIdentityProvider struct { ExternalIdentities struct { Nodes []ExternalIdentity } `graphql:"externalIdentities(first: 1, login: $login)"` } } `graphql:"organization(login: $org)"` }
type MockGraphClient ¶
MockGraphClient is an autogenerated mock type for the GraphClient type
func NewMockGraphClient ¶
func NewMockGraphClient(t interface { mock.TestingT Cleanup(func()) }, ) *MockGraphClient
NewMockGraphClient creates a new instance of MockGraphClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockGraphClient) EXPECT ¶
func (_m *MockGraphClient) EXPECT() *MockGraphClient_Expecter
type MockGraphClient_Expecter ¶
type MockGraphClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockGraphClient_Expecter) Query ¶
func (_e *MockGraphClient_Expecter) Query(ctx interface{}, q interface{}, variables interface{}) *MockGraphClient_Query_Call
Query is a helper method to define mock.On call
- ctx context.Context
- q interface{}
- variables map[string]interface{}
type MockGraphClient_Query_Call ¶
MockGraphClient_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'
func (*MockGraphClient_Query_Call) Return ¶
func (_c *MockGraphClient_Query_Call) Return(_a0 error) *MockGraphClient_Query_Call
func (*MockGraphClient_Query_Call) Run ¶
func (_c *MockGraphClient_Query_Call) Run(run func(ctx context.Context, q interface{}, variables map[string]interface{})) *MockGraphClient_Query_Call
func (*MockGraphClient_Query_Call) RunAndReturn ¶
func (_c *MockGraphClient_Query_Call) RunAndReturn(run func(context.Context, interface{}, map[string]interface{}) error) *MockGraphClient_Query_Call
type MockTeamsService ¶
MockTeamsService is an autogenerated mock type for the TeamsService type
func NewMockTeamsService ¶
func NewMockTeamsService(t interface { mock.TestingT Cleanup(func()) }, ) *MockTeamsService
NewMockTeamsService creates a new instance of MockTeamsService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockTeamsService) AddTeamMembershipBySlug ¶
func (_m *MockTeamsService) AddTeamMembershipBySlug(ctx context.Context, org string, slug string, user string, opts *github.TeamAddTeamMembershipOptions) (*github.Membership, *github.Response, error)
AddTeamMembershipBySlug provides a mock function with given fields: ctx, org, slug, user, opts
func (*MockTeamsService) CreateOrUpdateIDPGroupConnectionsBySlug ¶
func (_m *MockTeamsService) CreateOrUpdateIDPGroupConnectionsBySlug(ctx context.Context, org string, team string, opts github.IDPGroupList) (*github.IDPGroupList, *github.Response, error)
CreateOrUpdateIDPGroupConnectionsBySlug provides a mock function with given fields: ctx, org, team, opts
func (*MockTeamsService) CreateTeam ¶
func (_m *MockTeamsService) CreateTeam(ctx context.Context, org string, team github.NewTeam) (*github.Team, *github.Response, error)
CreateTeam provides a mock function with given fields: ctx, org, team
func (*MockTeamsService) DeleteTeamBySlug ¶
func (_m *MockTeamsService) DeleteTeamBySlug(ctx context.Context, org string, slug string) (*github.Response, error)
DeleteTeamBySlug provides a mock function with given fields: ctx, org, slug
func (*MockTeamsService) EXPECT ¶
func (_m *MockTeamsService) EXPECT() *MockTeamsService_Expecter
func (*MockTeamsService) EditTeamBySlug ¶
func (_m *MockTeamsService) EditTeamBySlug(ctx context.Context, org string, slug string, team github.NewTeam, removeParent bool) (*github.Team, *github.Response, error)
EditTeamBySlug provides a mock function with given fields: ctx, org, slug, team, removeParent
func (*MockTeamsService) GetTeamBySlug ¶
func (_m *MockTeamsService) GetTeamBySlug(ctx context.Context, org string, slug string) (*github.Team, *github.Response, error)
GetTeamBySlug provides a mock function with given fields: ctx, org, slug
func (*MockTeamsService) ListTeamMembersBySlug ¶
func (_m *MockTeamsService) ListTeamMembersBySlug(ctx context.Context, org string, slug string, opts *github.TeamListTeamMembersOptions) ([]*github.User, *github.Response, error)
ListTeamMembersBySlug provides a mock function with given fields: ctx, org, slug, opts
func (*MockTeamsService) ListTeamReposBySlug ¶
func (_m *MockTeamsService) ListTeamReposBySlug(ctx context.Context, org string, slug string, opts *github.ListOptions) ([]*github.Repository, *github.Response, error)
ListTeamReposBySlug provides a mock function with given fields: ctx, org, slug, opts
type MockTeamsService_AddTeamMembershipBySlug_Call ¶
MockTeamsService_AddTeamMembershipBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddTeamMembershipBySlug'
func (*MockTeamsService_AddTeamMembershipBySlug_Call) Return ¶
func (_c *MockTeamsService_AddTeamMembershipBySlug_Call) Return(_a0 *github.Membership, _a1 *github.Response, _a2 error) *MockTeamsService_AddTeamMembershipBySlug_Call
func (*MockTeamsService_AddTeamMembershipBySlug_Call) Run ¶
func (_c *MockTeamsService_AddTeamMembershipBySlug_Call) Run(run func(ctx context.Context, org string, slug string, user string, opts *github.TeamAddTeamMembershipOptions)) *MockTeamsService_AddTeamMembershipBySlug_Call
func (*MockTeamsService_AddTeamMembershipBySlug_Call) RunAndReturn ¶
func (_c *MockTeamsService_AddTeamMembershipBySlug_Call) RunAndReturn(run func(context.Context, string, string, string, *github.TeamAddTeamMembershipOptions) (*github.Membership, *github.Response, error)) *MockTeamsService_AddTeamMembershipBySlug_Call
type MockTeamsService_CreateOrUpdateIDPGroupConnectionsBySlug_Call ¶
MockTeamsService_CreateOrUpdateIDPGroupConnectionsBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateOrUpdateIDPGroupConnectionsBySlug'
func (*MockTeamsService_CreateOrUpdateIDPGroupConnectionsBySlug_Call) Return ¶
func (_c *MockTeamsService_CreateOrUpdateIDPGroupConnectionsBySlug_Call) Return(_a0 *github.IDPGroupList, _a1 *github.Response, _a2 error) *MockTeamsService_CreateOrUpdateIDPGroupConnectionsBySlug_Call
func (*MockTeamsService_CreateOrUpdateIDPGroupConnectionsBySlug_Call) Run ¶
func (_c *MockTeamsService_CreateOrUpdateIDPGroupConnectionsBySlug_Call) Run(run func(ctx context.Context, org string, team string, opts github.IDPGroupList)) *MockTeamsService_CreateOrUpdateIDPGroupConnectionsBySlug_Call
func (*MockTeamsService_CreateOrUpdateIDPGroupConnectionsBySlug_Call) RunAndReturn ¶
func (_c *MockTeamsService_CreateOrUpdateIDPGroupConnectionsBySlug_Call) RunAndReturn(run func(context.Context, string, string, github.IDPGroupList) (*github.IDPGroupList, *github.Response, error)) *MockTeamsService_CreateOrUpdateIDPGroupConnectionsBySlug_Call
type MockTeamsService_CreateTeam_Call ¶
MockTeamsService_CreateTeam_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateTeam'
func (*MockTeamsService_CreateTeam_Call) Return ¶
func (_c *MockTeamsService_CreateTeam_Call) Return(_a0 *github.Team, _a1 *github.Response, _a2 error) *MockTeamsService_CreateTeam_Call
func (*MockTeamsService_CreateTeam_Call) Run ¶
func (_c *MockTeamsService_CreateTeam_Call) Run(run func(ctx context.Context, org string, team github.NewTeam)) *MockTeamsService_CreateTeam_Call
func (*MockTeamsService_CreateTeam_Call) RunAndReturn ¶
type MockTeamsService_DeleteTeamBySlug_Call ¶
MockTeamsService_DeleteTeamBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteTeamBySlug'
func (*MockTeamsService_DeleteTeamBySlug_Call) Return ¶
func (_c *MockTeamsService_DeleteTeamBySlug_Call) Return(_a0 *github.Response, _a1 error) *MockTeamsService_DeleteTeamBySlug_Call
func (*MockTeamsService_DeleteTeamBySlug_Call) Run ¶
func (_c *MockTeamsService_DeleteTeamBySlug_Call) Run(run func(ctx context.Context, org string, slug string)) *MockTeamsService_DeleteTeamBySlug_Call
func (*MockTeamsService_DeleteTeamBySlug_Call) RunAndReturn ¶
func (_c *MockTeamsService_DeleteTeamBySlug_Call) RunAndReturn(run func(context.Context, string, string) (*github.Response, error)) *MockTeamsService_DeleteTeamBySlug_Call
type MockTeamsService_EditTeamBySlug_Call ¶
MockTeamsService_EditTeamBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EditTeamBySlug'
func (*MockTeamsService_EditTeamBySlug_Call) Return ¶
func (_c *MockTeamsService_EditTeamBySlug_Call) Return(_a0 *github.Team, _a1 *github.Response, _a2 error) *MockTeamsService_EditTeamBySlug_Call
type MockTeamsService_Expecter ¶
type MockTeamsService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTeamsService_Expecter) AddTeamMembershipBySlug ¶
func (_e *MockTeamsService_Expecter) AddTeamMembershipBySlug(ctx interface{}, org interface{}, slug interface{}, user interface{}, opts interface{}) *MockTeamsService_AddTeamMembershipBySlug_Call
AddTeamMembershipBySlug is a helper method to define mock.On call
- ctx context.Context
- org string
- slug string
- user string
- opts *github.TeamAddTeamMembershipOptions
func (*MockTeamsService_Expecter) CreateOrUpdateIDPGroupConnectionsBySlug ¶
func (_e *MockTeamsService_Expecter) CreateOrUpdateIDPGroupConnectionsBySlug(ctx interface{}, org interface{}, team interface{}, opts interface{}) *MockTeamsService_CreateOrUpdateIDPGroupConnectionsBySlug_Call
CreateOrUpdateIDPGroupConnectionsBySlug is a helper method to define mock.On call
- ctx context.Context
- org string
- team string
- opts github.IDPGroupList
func (*MockTeamsService_Expecter) CreateTeam ¶
func (_e *MockTeamsService_Expecter) CreateTeam(ctx interface{}, org interface{}, team interface{}) *MockTeamsService_CreateTeam_Call
CreateTeam is a helper method to define mock.On call
- ctx context.Context
- org string
- team github.NewTeam
func (*MockTeamsService_Expecter) DeleteTeamBySlug ¶
func (_e *MockTeamsService_Expecter) DeleteTeamBySlug(ctx interface{}, org interface{}, slug interface{}) *MockTeamsService_DeleteTeamBySlug_Call
DeleteTeamBySlug is a helper method to define mock.On call
- ctx context.Context
- org string
- slug string
func (*MockTeamsService_Expecter) EditTeamBySlug ¶
func (_e *MockTeamsService_Expecter) EditTeamBySlug(ctx interface{}, org interface{}, slug interface{}, team interface{}, removeParent interface{}) *MockTeamsService_EditTeamBySlug_Call
EditTeamBySlug is a helper method to define mock.On call
- ctx context.Context
- org string
- slug string
- team github.NewTeam
- removeParent bool
func (*MockTeamsService_Expecter) GetTeamBySlug ¶
func (_e *MockTeamsService_Expecter) GetTeamBySlug(ctx interface{}, org interface{}, slug interface{}) *MockTeamsService_GetTeamBySlug_Call
GetTeamBySlug is a helper method to define mock.On call
- ctx context.Context
- org string
- slug string
func (*MockTeamsService_Expecter) ListTeamMembersBySlug ¶
func (_e *MockTeamsService_Expecter) ListTeamMembersBySlug(ctx interface{}, org interface{}, slug interface{}, opts interface{}) *MockTeamsService_ListTeamMembersBySlug_Call
ListTeamMembersBySlug is a helper method to define mock.On call
- ctx context.Context
- org string
- slug string
- opts *github.TeamListTeamMembersOptions
func (*MockTeamsService_Expecter) ListTeamReposBySlug ¶
func (_e *MockTeamsService_Expecter) ListTeamReposBySlug(ctx interface{}, org interface{}, slug interface{}, opts interface{}) *MockTeamsService_ListTeamReposBySlug_Call
ListTeamReposBySlug is a helper method to define mock.On call
- ctx context.Context
- org string
- slug string
- opts *github.ListOptions
func (*MockTeamsService_Expecter) RemoveTeamMembershipBySlug ¶
func (_e *MockTeamsService_Expecter) RemoveTeamMembershipBySlug(ctx interface{}, org interface{}, slug interface{}, user interface{}) *MockTeamsService_RemoveTeamMembershipBySlug_Call
RemoveTeamMembershipBySlug is a helper method to define mock.On call
- ctx context.Context
- org string
- slug string
- user string
type MockTeamsService_GetTeamBySlug_Call ¶
MockTeamsService_GetTeamBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTeamBySlug'
func (*MockTeamsService_GetTeamBySlug_Call) Return ¶
func (_c *MockTeamsService_GetTeamBySlug_Call) Return(_a0 *github.Team, _a1 *github.Response, _a2 error) *MockTeamsService_GetTeamBySlug_Call
func (*MockTeamsService_GetTeamBySlug_Call) Run ¶
func (_c *MockTeamsService_GetTeamBySlug_Call) Run(run func(ctx context.Context, org string, slug string)) *MockTeamsService_GetTeamBySlug_Call
func (*MockTeamsService_GetTeamBySlug_Call) RunAndReturn ¶
type MockTeamsService_ListTeamMembersBySlug_Call ¶
MockTeamsService_ListTeamMembersBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTeamMembersBySlug'
func (*MockTeamsService_ListTeamMembersBySlug_Call) Return ¶
func (_c *MockTeamsService_ListTeamMembersBySlug_Call) Return(_a0 []*github.User, _a1 *github.Response, _a2 error) *MockTeamsService_ListTeamMembersBySlug_Call
func (*MockTeamsService_ListTeamMembersBySlug_Call) Run ¶
func (_c *MockTeamsService_ListTeamMembersBySlug_Call) Run(run func(ctx context.Context, org string, slug string, opts *github.TeamListTeamMembersOptions)) *MockTeamsService_ListTeamMembersBySlug_Call
func (*MockTeamsService_ListTeamMembersBySlug_Call) RunAndReturn ¶
func (_c *MockTeamsService_ListTeamMembersBySlug_Call) RunAndReturn(run func(context.Context, string, string, *github.TeamListTeamMembersOptions) ([]*github.User, *github.Response, error)) *MockTeamsService_ListTeamMembersBySlug_Call
type MockTeamsService_ListTeamReposBySlug_Call ¶
MockTeamsService_ListTeamReposBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTeamReposBySlug'
func (*MockTeamsService_ListTeamReposBySlug_Call) Return ¶
func (_c *MockTeamsService_ListTeamReposBySlug_Call) Return(_a0 []*github.Repository, _a1 *github.Response, _a2 error) *MockTeamsService_ListTeamReposBySlug_Call
func (*MockTeamsService_ListTeamReposBySlug_Call) Run ¶
func (_c *MockTeamsService_ListTeamReposBySlug_Call) Run(run func(ctx context.Context, org string, slug string, opts *github.ListOptions)) *MockTeamsService_ListTeamReposBySlug_Call
func (*MockTeamsService_ListTeamReposBySlug_Call) RunAndReturn ¶
func (_c *MockTeamsService_ListTeamReposBySlug_Call) RunAndReturn(run func(context.Context, string, string, *github.ListOptions) ([]*github.Repository, *github.Response, error)) *MockTeamsService_ListTeamReposBySlug_Call
type MockTeamsService_RemoveTeamMembershipBySlug_Call ¶
MockTeamsService_RemoveTeamMembershipBySlug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveTeamMembershipBySlug'
func (*MockTeamsService_RemoveTeamMembershipBySlug_Call) Return ¶
func (_c *MockTeamsService_RemoveTeamMembershipBySlug_Call) Return(_a0 *github.Response, _a1 error) *MockTeamsService_RemoveTeamMembershipBySlug_Call
func (*MockTeamsService_RemoveTeamMembershipBySlug_Call) Run ¶
func (_c *MockTeamsService_RemoveTeamMembershipBySlug_Call) Run(run func(ctx context.Context, org string, slug string, user string)) *MockTeamsService_RemoveTeamMembershipBySlug_Call
func (*MockTeamsService_RemoveTeamMembershipBySlug_Call) RunAndReturn ¶
func (_c *MockTeamsService_RemoveTeamMembershipBySlug_Call) RunAndReturn(run func(context.Context, string, string, string) (*github.Response, error)) *MockTeamsService_RemoveTeamMembershipBySlug_Call
type TeamsService ¶
type TeamsService interface { AddTeamMembershipBySlug(ctx context.Context, org, slug, user string, opts *github.TeamAddTeamMembershipOptions) (*github.Membership, *github.Response, error) CreateTeam(ctx context.Context, org string, team github.NewTeam) (*github.Team, *github.Response, error) GetTeamBySlug(ctx context.Context, org, slug string) (*github.Team, *github.Response, error) EditTeamBySlug(ctx context.Context, org, slug string, team github.NewTeam, removeParent bool) (*github.Team, *github.Response, error) ListTeamMembersBySlug(ctx context.Context, org, slug string, opts *github.TeamListTeamMembersOptions) ([]*github.User, *github.Response, error) RemoveTeamMembershipBySlug(ctx context.Context, org, slug, user string) (*github.Response, error) CreateOrUpdateIDPGroupConnectionsBySlug(ctx context.Context, org, team string, opts github.IDPGroupList) (*github.IDPGroupList, *github.Response, error) ListTeamReposBySlug(ctx context.Context, org, slug string, opts *github.ListOptions) ([]*github.Repository, *github.Response, error) DeleteTeamBySlug(ctx context.Context, org, slug string) (*github.Response, error) }