ossaccesscontrol

package
v0.0.1-test Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: AGPL-3.0 Imports: 15 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 *sqlstore.SQLStore, ac accesscontrol.AccessControl,
	license models.Licensing, dashboardStore dashboards.Store, service accesscontrol.Service,
	teamService team.Service, userService user.Service,
) (*DashboardPermissionsService, error)

type DatasourcePermissionsService

type DatasourcePermissionsService struct{}

func ProvideDatasourcePermissionsService

func ProvideDatasourcePermissionsService() *DatasourcePermissionsService

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 *sqlstore.SQLStore, accesscontrol accesscontrol.AccessControl,
	license models.Licensing, dashboardStore dashboards.Store, 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 *sqlstore.SQLStore, ac accesscontrol.AccessControl,
	license models.Licensing, serviceAccountStore serviceaccounts.Store, 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 *sqlstore.SQLStore,
	ac accesscontrol.AccessControl, license models.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