team

package
v0.0.0-...-5b163ad Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyTeam

func ApplyTeam(ctx context.Context,
	teamSvc TeamService,
	teamMembershipSvc user.TeamMembershipService,
	userSvc user.UserService,
	inviteSvc user.InviteService,
	teamName string,
	teamConfig manifest.Team) (string, error)

Types

type MockTeamService

type MockTeamService struct {
	mock.Mock
}

MockTeamService is an autogenerated mock type for the TeamService type

func NewMockTeamService

func NewMockTeamService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTeamService

NewMockTeamService creates a new instance of MockTeamService. 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 (*MockTeamService) CreateTeam

CreateTeam provides a mock function with given fields: ctx, request, opts

func (*MockTeamService) EXPECT

func (*MockTeamService) GetTeam

func (_m *MockTeamService) GetTeam(ctx context.Context, teamID string, opts ...operations.Option) (*operations.GetTeamResponse, error)

GetTeam provides a mock function with given fields: ctx, teamID, opts

func (*MockTeamService) ListTeams

ListTeams provides a mock function with given fields: ctx, request, opts

func (*MockTeamService) UpdateTeam

func (_m *MockTeamService) UpdateTeam(ctx context.Context, teamID string, updateTeam *components.UpdateTeam, opts ...operations.Option) (*operations.UpdateTeamResponse, error)

UpdateTeam provides a mock function with given fields: ctx, teamID, updateTeam, opts

type MockTeamService_CreateTeam_Call

type MockTeamService_CreateTeam_Call struct {
	*mock.Call
}

MockTeamService_CreateTeam_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateTeam'

func (*MockTeamService_CreateTeam_Call) Return

func (*MockTeamService_CreateTeam_Call) Run

type MockTeamService_Expecter

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

func (*MockTeamService_Expecter) CreateTeam

func (_e *MockTeamService_Expecter) CreateTeam(ctx interface{}, request interface{}, opts ...interface{}) *MockTeamService_CreateTeam_Call

CreateTeam is a helper method to define mock.On call

  • ctx context.Context
  • request *components.CreateTeam
  • opts ...operations.Option

func (*MockTeamService_Expecter) GetTeam

func (_e *MockTeamService_Expecter) GetTeam(ctx interface{}, teamID interface{}, opts ...interface{}) *MockTeamService_GetTeam_Call

GetTeam is a helper method to define mock.On call

  • ctx context.Context
  • teamID string
  • opts ...operations.Option

func (*MockTeamService_Expecter) ListTeams

func (_e *MockTeamService_Expecter) ListTeams(ctx interface{}, request interface{}, opts ...interface{}) *MockTeamService_ListTeams_Call

ListTeams is a helper method to define mock.On call

  • ctx context.Context
  • request operations.ListTeamsRequest
  • opts ...operations.Option

func (*MockTeamService_Expecter) UpdateTeam

func (_e *MockTeamService_Expecter) UpdateTeam(ctx interface{}, teamID interface{}, updateTeam interface{}, opts ...interface{}) *MockTeamService_UpdateTeam_Call

UpdateTeam is a helper method to define mock.On call

  • ctx context.Context
  • teamID string
  • updateTeam *components.UpdateTeam
  • opts ...operations.Option

type MockTeamService_GetTeam_Call

type MockTeamService_GetTeam_Call struct {
	*mock.Call
}

MockTeamService_GetTeam_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTeam'

func (*MockTeamService_GetTeam_Call) Return

func (*MockTeamService_GetTeam_Call) Run

func (*MockTeamService_GetTeam_Call) RunAndReturn

type MockTeamService_ListTeams_Call

type MockTeamService_ListTeams_Call struct {
	*mock.Call
}

MockTeamService_ListTeams_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListTeams'

func (*MockTeamService_ListTeams_Call) Return

func (*MockTeamService_ListTeams_Call) Run

type MockTeamService_UpdateTeam_Call

type MockTeamService_UpdateTeam_Call struct {
	*mock.Call
}

MockTeamService_UpdateTeam_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateTeam'

func (*MockTeamService_UpdateTeam_Call) Return

func (*MockTeamService_UpdateTeam_Call) Run

Jump to

Keyboard shortcuts

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