Documentation ¶
Index ¶
- Variables
- type Filter
- type Filters
- type Policy
- type RelationService
- type Repository
- type RoleService
- type Service
- func (s Service) AssignRole(ctx context.Context, pol Policy) error
- func (s Service) Create(ctx context.Context, policy Policy) (Policy, error)
- func (s Service) Delete(ctx context.Context, id string) error
- func (s Service) Get(ctx context.Context, id string) (Policy, error)
- func (s Service) List(ctx context.Context, f Filter) ([]Policy, error)
- func (s Service) ListForUser(ctx context.Context, userID, objectNamespace, objectID string) ([]role.Role, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type RelationService ¶
type Repository ¶
type RoleService ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repository Repository, relationService RelationService, roleService RoleService) *Service
func (Service) AssignRole ¶
AssignRole Note: ideally this should be in a single transaction read more about how user defined roles work in spicedb https://authzed.com/blog/user-defined-roles
Click to show internal directories.
Click to hide internal directories.