mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
17
pkg/services/ldap/ldap_groups.go
Normal file
17
pkg/services/ldap/ldap_groups.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user