Documentation ¶
Index ¶
- func AddOrUpdateTeamMemberHook(sess *db.Session, userID, orgID, teamID int64, isExternal bool, ...) error
- func ProvideService(db db.DB, cfg *setting.Cfg, tracer tracing.Tracer) (team.Service, error)
- func RemoveTeamMemberHook(sess *db.Session, cmd *team.RemoveTeamMemberCommand) error
- type Service
- func (s *Service) CreateTeam(ctx context.Context, name, email string, orgID int64) (team.Team, error)
- func (s *Service) DeleteTeam(ctx context.Context, cmd *team.DeleteTeamCommand) error
- func (s *Service) GetTeamByID(ctx context.Context, query *team.GetTeamByIDQuery) (*team.TeamDTO, error)
- func (s *Service) GetTeamIDsByUser(ctx context.Context, query *team.GetTeamIDsByUserQuery) ([]int64, error)
- func (s *Service) GetTeamMembers(ctx context.Context, query *team.GetTeamMembersQuery) ([]*team.TeamMemberDTO, error)
- func (s *Service) GetTeamsByUser(ctx context.Context, query *team.GetTeamsByUserQuery) ([]*team.TeamDTO, error)
- func (s *Service) GetUserTeamMemberships(ctx context.Context, orgID, userID int64, external bool) ([]*team.TeamMemberDTO, error)
- func (s *Service) IsTeamMember(ctx context.Context, orgId int64, teamId int64, userId int64) (bool, error)
- func (s *Service) RegisterDelete(query string)
- func (s *Service) RemoveUsersMemberships(ctx context.Context, userID int64) error
- func (s *Service) SearchTeams(ctx context.Context, query *team.SearchTeamsQuery) (team.SearchTeamQueryResult, error)
- func (s *Service) UpdateTeam(ctx context.Context, cmd *team.UpdateTeamCommand) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOrUpdateTeamMemberHook ¶
func AddOrUpdateTeamMemberHook(sess *db.Session, userID, orgID, teamID int64, isExternal bool, permission dashboardaccess.PermissionType) error
AddOrUpdateTeamMemberHook is called from team resource permission service it adds user to a team or updates user permissions in a team within the given transaction session
func ProvideService ¶
func RemoveTeamMemberHook ¶
func RemoveTeamMemberHook(sess *db.Session, cmd *team.RemoveTeamMemberCommand) error
RemoveTeamMemberHook is called from team resource permission service it removes a member from a team within the given transaction session
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CreateTeam ¶
func (*Service) DeleteTeam ¶
func (*Service) GetTeamByID ¶
func (*Service) GetTeamIDsByUser ¶
func (*Service) GetTeamMembers ¶
func (s *Service) GetTeamMembers(ctx context.Context, query *team.GetTeamMembersQuery) ([]*team.TeamMemberDTO, error)
func (*Service) GetTeamsByUser ¶
func (*Service) GetUserTeamMemberships ¶
func (*Service) IsTeamMember ¶
func (*Service) RegisterDelete ¶
func (*Service) RemoveUsersMemberships ¶
func (*Service) SearchTeams ¶
func (s *Service) SearchTeams(ctx context.Context, query *team.SearchTeamsQuery) (team.SearchTeamQueryResult, error)
func (*Service) UpdateTeam ¶
Click to show internal directories.
Click to hide internal directories.