Documentation ¶
Index ¶
- func GetAccessPolicies(ctx context.Context, orgID int64, sql *session.SessionDB, ...) ([]accesspolicy.Resource, error)
- type AccessControlStore
- func (s *AccessControlStore) DeleteExternalServiceRole(ctx context.Context, externalServiceID string) error
- func (s *AccessControlStore) DeleteTeamPermissions(ctx context.Context, orgID, teamID int64) error
- func (s *AccessControlStore) DeleteUserPermissions(ctx context.Context, orgID, userID int64) error
- func (s *AccessControlStore) GetBasicRolesPermissions(ctx context.Context, query accesscontrol.GetUserPermissionsQuery) ([]accesscontrol.Permission, error)
- func (s *AccessControlStore) GetTeamsPermissions(ctx context.Context, query accesscontrol.GetUserPermissionsQuery) (map[int64][]accesscontrol.Permission, error)
- func (s *AccessControlStore) GetUserPermissions(ctx context.Context, query accesscontrol.GetUserPermissionsQuery) ([]accesscontrol.Permission, error)
- func (s *AccessControlStore) GetUsersBasicRoles(ctx context.Context, userFilter []int64, orgID int64) (map[int64][]string, error)
- func (s *AccessControlStore) SaveExternalServiceRole(ctx context.Context, cmd accesscontrol.SaveExternalServiceRoleCommand) error
- func (s *AccessControlStore) SearchUsersPermissions(ctx context.Context, orgID int64, options accesscontrol.SearchOptions) (map[int64][]accesscontrol.Permission, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccessPolicies ¶
func GetAccessPolicies(ctx context.Context, orgID int64, sql *session.SessionDB, resolver accesscontrol.ScopeAttributeResolverFunc) ([]accesspolicy.Resource, error)
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 (s *AccessControlStore) GetBasicRolesPermissions(ctx context.Context, query accesscontrol.GetUserPermissionsQuery) ([]accesscontrol.Permission, error)
func (*AccessControlStore) GetTeamsPermissions ¶
func (s *AccessControlStore) GetTeamsPermissions(ctx context.Context, query accesscontrol.GetUserPermissionsQuery) (map[int64][]accesscontrol.Permission, error)
func (*AccessControlStore) GetUserPermissions ¶
func (s *AccessControlStore) GetUserPermissions(ctx context.Context, query accesscontrol.GetUserPermissionsQuery) ([]accesscontrol.Permission, error)
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 (s *AccessControlStore) SaveExternalServiceRole(ctx context.Context, cmd accesscontrol.SaveExternalServiceRoleCommand) error
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
Click to show internal directories.
Click to hide internal directories.