database

package
v0.0.0-kmdagger3 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 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) DeleteUserPermissions

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

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 indexed by UserID

Jump to

Keyboard shortcuts

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