grafana/pkg/services/ldap/ldap_groups.go
Selene 875e0736ec
LDAP: Use an interface instead of a bus to get group teams (#42165)
* Remove bus for GetTeams for LDAP

* Fix lint
2022-02-01 12:03:21 +01:00

18 lines
334 B
Go

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
}