Documentation ¶
Index ¶
- func AddOrUpdateTeamMemberHook(sess *db.Session, userID, orgID, teamID int64, isExternal bool, ...) error
- func ProvideService(db db.DB, cfg *setting.Cfg) team.Service
- func RemoveTeamMemberHook(sess *db.Session, cmd *team.RemoveTeamMemberCommand) error
- type Service
- func (s *Service) AddTeamMember(userID, orgID, teamID int64, isExternal bool, ...) error
- func (s *Service) CreateTeam(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) 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(orgId int64, teamId int64, userId int64) (bool, error)
- func (s *Service) RemoveTeamMember(ctx context.Context, cmd *team.RemoveTeamMemberCommand) error
- 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
- func (s *Service) UpdateTeamMember(ctx context.Context, cmd *team.UpdateTeamMemberCommand) 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 dashboards.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 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) AddTeamMember ¶
func (s *Service) AddTeamMember(userID, orgID, teamID int64, isExternal bool, permission dashboards.PermissionType) error
func (*Service) CreateTeam ¶
func (*Service) DeleteTeam ¶
func (*Service) GetTeamByID ¶
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) RemoveTeamMember ¶
func (*Service) RemoveUsersMemberships ¶
func (*Service) SearchTeams ¶
func (s *Service) SearchTeams(ctx context.Context, query *team.SearchTeamsQuery) (team.SearchTeamQueryResult, error)
func (*Service) UpdateTeam ¶
func (*Service) UpdateTeamMember ¶
Click to show internal directories.
Click to hide internal directories.