permissions

package
v0.0.0-testrgm4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL