mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 03:11:01 -06:00
6afad51761
* Move SignedInUser to user service and RoleType and Roles to org * Use go naming convention for roles * Fix some imports and leftovers * Fix ldap debug test * Fix lint * Fix lint 2 * Fix lint 3 * Fix type and not needed conversion * Clean up messages in api tests * Clean up api tests 2
19 lines
442 B
Go
19 lines
442 B
Go
package teamguardian
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/grafana/grafana/pkg/models"
|
|
"github.com/grafana/grafana/pkg/services/user"
|
|
)
|
|
|
|
type TeamGuardian interface {
|
|
CanAdmin(context.Context, int64, int64, *user.SignedInUser) error
|
|
DeleteByUser(context.Context, int64) error
|
|
}
|
|
|
|
type Store interface {
|
|
GetTeamMembers(context.Context, models.GetTeamMembersQuery) ([]*models.TeamMemberDTO, error)
|
|
DeleteByUser(context.Context, int64) error
|
|
}
|