database

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type AccessControlStore

type AccessControlStore struct {
	// contains filtered or unexported fields
}

func ProvideService

func ProvideService(sql db.DB) *AccessControlStore

func (*AccessControlStore) DeleteExternalServiceRole

func (s *AccessControlStore) DeleteExternalServiceRole(ctx context.Context, externalServiceID string) error

func (*AccessControlStore) DeleteTeamPermissions

func (s *AccessControlStore) DeleteTeamPermissions(ctx context.Context, orgID, teamID int64) error

func (*AccessControlStore) DeleteUserPermissions

func (s *AccessControlStore) DeleteUserPermissions(ctx context.Context, orgID, userID int64) error

func (*AccessControlStore) GetBasicRolesPermissions

func (*AccessControlStore) GetTeamsPermissions

func (*AccessControlStore) GetUserPermissions

func (*AccessControlStore) GetUsersBasicRoles

func (s *AccessControlStore) GetUsersBasicRoles(ctx context.Context, userFilter []int64, orgID int64) (map[int64][]string, error)

GetUsersBasicRoles returns the list of user basic roles (Admin, Editor, Viewer, Grafana Admin) indexed by UserID

func (*AccessControlStore) SaveExternalServiceRole

func (*AccessControlStore) SearchUsersPermissions

func (s *AccessControlStore) SearchUsersPermissions(ctx context.Context, orgID int64, options accesscontrol.SearchOptions) (map[int64][]accesscontrol.Permission, error)

SearchUsersPermissions returns the list of user permissions in specific organization indexed by UserID

Jump to

Keyboard shortcuts

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