LDAP: Use an interface instead of a bus to get group teams (#42165)

* Remove bus for GetTeams for LDAP

* Fix lint
This commit is contained in:
Selene
2022-02-01 12:03:21 +01:00
committed by GitHub
parent 8b2fe460e2
commit 875e0736ec
7 changed files with 31 additions and 20 deletions

View File

@@ -0,0 +1,17 @@
package ldap
import "github.com/grafana/grafana/pkg/models"
type Groups interface {
GetTeams(groups []string) ([]models.TeamOrgGroupDTO, error)
}
type OSSGroups struct{}
func ProvideGroupsService() *OSSGroups {
return &OSSGroups{}
}
func (*OSSGroups) GetTeams(_ []string) ([]models.TeamOrgGroupDTO, error) {
return nil, nil
}