Documentation ¶
Index ¶
- type FakeService
- func (s *FakeService) AddTeamMember(userID, orgID, teamID int64, isExternal bool, ...) error
- func (s *FakeService) CreateTeam(name, email string, orgID int64) (team.Team, error)
- func (s *FakeService) DeleteTeam(ctx context.Context, cmd *team.DeleteTeamCommand) error
- func (s *FakeService) GetTeamByID(ctx context.Context, query *team.GetTeamByIDQuery) (*team.TeamDTO, error)
- func (s *FakeService) GetTeamMembers(ctx context.Context, query *team.GetTeamMembersQuery) ([]*team.TeamMemberDTO, error)
- func (s *FakeService) GetTeamsByUser(ctx context.Context, query *team.GetTeamsByUserQuery) ([]*team.TeamDTO, error)
- func (s *FakeService) GetUserTeamMemberships(ctx context.Context, orgID, userID int64, external bool) ([]*team.TeamMemberDTO, error)
- func (s *FakeService) IsTeamMember(orgId int64, teamId int64, userId int64) (bool, error)
- func (s *FakeService) RemoveTeamMember(ctx context.Context, cmd *team.RemoveTeamMemberCommand) error
- func (s *FakeService) RemoveUsersMemberships(ctx context.Context, userID int64) error
- func (s *FakeService) SearchTeams(ctx context.Context, query *team.SearchTeamsQuery) (team.SearchTeamQueryResult, error)
- func (s *FakeService) UpdateTeam(ctx context.Context, cmd *team.UpdateTeamCommand) error
- func (s *FakeService) UpdateTeamMember(ctx context.Context, cmd *team.UpdateTeamMemberCommand) error
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 (*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 (*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 (s *FakeService) SearchTeams(ctx context.Context, query *team.SearchTeamsQuery) (team.SearchTeamQueryResult, error)
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
Click to show internal directories.
Click to hide internal directories.