Documentation ¶
Index ¶
- Variables
- func NewMockDatasourcePermissionService() *mockDatasourcePermissionService
- type DatasourcePermissionsService
- type OSSDatasourcePermissionsService
- func (hs *OSSDatasourcePermissionsService) FilterDatasourceUidsBasedOnQueryPermissions(ctx context.Context, user *user.SignedInUser, datasourceUids []string) ([]string, error)
- func (hs *OSSDatasourcePermissionsService) FilterDatasourcesBasedOnQueryPermissions(ctx context.Context, cmd *datasources.DatasourcesPermissionFilterQuery) ([]*datasources.DataSource, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotImplemented = errors.New("not implemented")
Functions ¶
func NewMockDatasourcePermissionService ¶
func NewMockDatasourcePermissionService() *mockDatasourcePermissionService
Types ¶
type DatasourcePermissionsService ¶
type DatasourcePermissionsService interface { FilterDatasourcesBasedOnQueryPermissions(ctx context.Context, cmd *datasources.DatasourcesPermissionFilterQuery) ([]*datasources.DataSource, error) FilterDatasourceUidsBasedOnQueryPermissions(ctx context.Context, user *user.SignedInUser, datasourceUids []string) ([]string, error) }
type OSSDatasourcePermissionsService ¶
type OSSDatasourcePermissionsService struct{}
func ProvideDatasourcePermissionsService ¶
func ProvideDatasourcePermissionsService() *OSSDatasourcePermissionsService
func (*OSSDatasourcePermissionsService) FilterDatasourceUidsBasedOnQueryPermissions ¶
func (hs *OSSDatasourcePermissionsService) FilterDatasourceUidsBasedOnQueryPermissions(ctx context.Context, user *user.SignedInUser, datasourceUids []string) ([]string, error)
func (*OSSDatasourcePermissionsService) FilterDatasourcesBasedOnQueryPermissions ¶
func (hs *OSSDatasourcePermissionsService) FilterDatasourcesBasedOnQueryPermissions(ctx context.Context, cmd *datasources.DatasourcesPermissionFilterQuery) ([]*datasources.DataSource, error)
dummy method
Click to show internal directories.
Click to hide internal directories.