teamtest

package
v0.0.0-testrgm6 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeService

type FakeService struct {
	ExpectedTeam        team.Team
	ExpectedIsMember    bool
	ExpectedIsAdmin     bool
	ExpectedTeamDTO     *team.TeamDTO
	ExpectedTeamsByUser []*team.TeamDTO
	ExpectedMembers     []*team.TeamMemberDTO
	ExpectedError       error
}

func NewFakeService

func NewFakeService() *FakeService

func (*FakeService) AddTeamMember

func (s *FakeService) AddTeamMember(userID, orgID, teamID int64, isExternal bool, permission dashboards.PermissionType) error

func (*FakeService) CreateTeam

func (s *FakeService) CreateTeam(name, email string, orgID int64) (team.Team, error)

func (*FakeService) DeleteTeam

func (s *FakeService) DeleteTeam(ctx context.Context, cmd *team.DeleteTeamCommand) error

func (*FakeService) GetTeamByID

func (s *FakeService) GetTeamByID(ctx context.Context, query *team.GetTeamByIDQuery) (*team.TeamDTO, error)

func (*FakeService) GetTeamMembers

func (s *FakeService) GetTeamMembers(ctx context.Context, query *team.GetTeamMembersQuery) ([]*team.TeamMemberDTO, error)

func (*FakeService) GetTeamsByUser

func (s *FakeService) GetTeamsByUser(ctx context.Context, query *team.GetTeamsByUserQuery) ([]*team.TeamDTO, error)

func (*FakeService) GetUserTeamMemberships

func (s *FakeService) GetUserTeamMemberships(ctx context.Context, orgID, userID int64, external bool) ([]*team.TeamMemberDTO, error)

func (*FakeService) IsTeamMember

func (s *FakeService) IsTeamMember(orgId int64, teamId int64, userId int64) (bool, error)

func (*FakeService) RemoveTeamMember

func (s *FakeService) RemoveTeamMember(ctx context.Context, cmd *team.RemoveTeamMemberCommand) error

func (*FakeService) RemoveUsersMemberships

func (s *FakeService) RemoveUsersMemberships(ctx context.Context, userID int64) error

func (*FakeService) SearchTeams

func (*FakeService) UpdateTeam

func (s *FakeService) UpdateTeam(ctx context.Context, cmd *team.UpdateTeamCommand) error

func (*FakeService) UpdateTeamMember

func (s *FakeService) UpdateTeamMember(ctx context.Context, cmd *team.UpdateTeamMemberCommand) error

Jump to

Keyboard shortcuts

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