Documentation ¶
Overview ¶
Package roles contains the logic for managing user roles within a Minder project
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoleService ¶
type RoleService interface { // CreateRoleAssignment assigns a user a role on a project CreateRoleAssignment(ctx context.Context, qtx db.Querier, authzClient authz.Client, idClient auth.Resolver, targetProject uuid.UUID, subject string, authzRole authz.Role) (*pb.RoleAssignment, error) // UpdateRoleAssignment updates the users role on a project UpdateRoleAssignment(ctx context.Context, qtx db.Querier, authzClient authz.Client, idClient auth.Resolver, targetProject uuid.UUID, subject string, authzRole authz.Role) (*pb.RoleAssignment, error) // RemoveRoleAssignment removes the role assignment for the user on a project RemoveRoleAssignment(ctx context.Context, qtx db.Querier, authzClient authz.Client, idClient auth.Resolver, targetProject uuid.UUID, subject string, roleToRemove authz.Role) (*pb.RoleAssignment, error) }
RoleService encapsulates the methods to manage user role assignments
func NewRoleService ¶
func NewRoleService() RoleService
NewRoleService creates a new instance of RoleService
Click to show internal directories.
Click to hide internal directories.