ossaccesscontrol

package
v0.0.0-test.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DashboardViewActions = []string{dashboards.ActionDashboardsRead}

Functions

This section is empty.

Types

type DashboardPermissionsService

type DashboardPermissionsService struct {
	*resourcepermissions.Service
}

func ProvideDashboardPermissions

func ProvideDashboardPermissions(
	cfg *setting.Cfg, router routing.RouteRegister, sql db.DB, ac accesscontrol.AccessControl,
	license licensing.Licensing, dashboardStore dashboards.Store, folderService folder.Service, service accesscontrol.Service,
	teamService team.Service, userService user.Service,
) (*DashboardPermissionsService, error)

type DatasourcePermissionsService

type DatasourcePermissionsService struct{}

func ProvideDatasourcePermissionsService

func ProvideDatasourcePermissionsService() *DatasourcePermissionsService

func (DatasourcePermissionsService) DeleteResourcePermissions

func (e DatasourcePermissionsService) DeleteResourcePermissions(ctx context.Context, orgID int64, resourceID string) error

func (DatasourcePermissionsService) GetPermissions

func (DatasourcePermissionsService) MapActions

func (DatasourcePermissionsService) SetBuiltInRolePermission

func (e DatasourcePermissionsService) SetBuiltInRolePermission(ctx context.Context, orgID int64, builtInRole string, resourceID string, permission string) (*accesscontrol.ResourcePermission, error)

func (DatasourcePermissionsService) SetPermissions

func (DatasourcePermissionsService) SetTeamPermission

func (e DatasourcePermissionsService) SetTeamPermission(ctx context.Context, orgID, teamID int64, resourceID, permission string) (*accesscontrol.ResourcePermission, error)

func (DatasourcePermissionsService) SetUserPermission

func (e DatasourcePermissionsService) SetUserPermission(ctx context.Context, orgID int64, user accesscontrol.User, resourceID, permission string) (*accesscontrol.ResourcePermission, error)

type FolderPermissionsService

type FolderPermissionsService struct {
	*resourcepermissions.Service
}

func ProvideFolderPermissions

func ProvideFolderPermissions(
	cfg *setting.Cfg, router routing.RouteRegister, sql db.DB, accesscontrol accesscontrol.AccessControl,
	license licensing.Licensing, dashboardStore dashboards.Store, folderService folder.Service, service accesscontrol.Service,
	teamService team.Service, userService user.Service,
) (*FolderPermissionsService, error)

type ServiceAccountPermissionsService

type ServiceAccountPermissionsService struct {
	*resourcepermissions.Service
}

func ProvideServiceAccountPermissions

func ProvideServiceAccountPermissions(
	cfg *setting.Cfg, router routing.RouteRegister, sql db.DB, ac accesscontrol.AccessControl,
	license licensing.Licensing, serviceAccountRetrieverService *retriever.Service, service accesscontrol.Service,
	teamService team.Service, userService user.Service,
) (*ServiceAccountPermissionsService, error)

type TeamPermissionsService

type TeamPermissionsService struct {
	*resourcepermissions.Service
}

func ProvideTeamPermissions

func ProvideTeamPermissions(
	cfg *setting.Cfg, router routing.RouteRegister, sql db.DB,
	ac accesscontrol.AccessControl, license licensing.Licensing, service accesscontrol.Service,
	teamService team.Service, userService user.Service,
) (*TeamPermissionsService, error)

Jump to

Keyboard shortcuts

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