Documentation ¶
Index ¶
- Variables
- type RBACAPIServer
- type RBACAPIServerWrapper
- func (s *RBACAPIServerWrapper) AssignRoles(ctx context.Context, req *apiv1.AssignRolesRequest) (*apiv1.AssignRolesResponse, error)
- func (s *RBACAPIServerWrapper) AssignWorkspaceAdminToUserTx(ctx context.Context, idb bun.IDB, workspaceID int, userID model.UserID) error
- func (s *RBACAPIServerWrapper) GetGroupsAndUsersAssignedToWorkspace(ctx context.Context, req *apiv1.GetGroupsAndUsersAssignedToWorkspaceRequest) (*apiv1.GetGroupsAndUsersAssignedToWorkspaceResponse, error)
- func (s *RBACAPIServerWrapper) GetPermissionsSummary(ctx context.Context, req *apiv1.GetPermissionsSummaryRequest) (*apiv1.GetPermissionsSummaryResponse, error)
- func (s *RBACAPIServerWrapper) GetRolesAssignedToGroup(ctx context.Context, req *apiv1.GetRolesAssignedToGroupRequest) (*apiv1.GetRolesAssignedToGroupResponse, error)
- func (s *RBACAPIServerWrapper) GetRolesAssignedToUser(ctx context.Context, req *apiv1.GetRolesAssignedToUserRequest) (*apiv1.GetRolesAssignedToUserResponse, error)
- func (s *RBACAPIServerWrapper) GetRolesByID(ctx context.Context, req *apiv1.GetRolesByIDRequest) (resp *apiv1.GetRolesByIDResponse, err error)
- func (s *RBACAPIServerWrapper) ListRoles(ctx context.Context, req *apiv1.ListRolesRequest) (*apiv1.ListRolesResponse, error)
- func (s *RBACAPIServerWrapper) RemoveAssignments(ctx context.Context, req *apiv1.RemoveAssignmentsRequest) (*apiv1.RemoveAssignmentsResponse, error)
- func (s *RBACAPIServerWrapper) SearchRolesAssignableToScope(ctx context.Context, req *apiv1.SearchRolesAssignableToScopeRequest) (*apiv1.SearchRolesAssignableToScopeResponse, error)
Constants ¶
This section is empty.
Variables ¶
var UnimplementedError = status.Error(codes.Unimplemented, stubUnimplementedMessage)
UnimplementedError is the error returned for unimplemented functions.
Functions ¶
This section is empty.
Types ¶
type RBACAPIServer ¶
type RBACAPIServer interface { GetPermissionsSummary(context.Context, *apiv1.GetPermissionsSummaryRequest) ( *apiv1.GetPermissionsSummaryResponse, error) GetGroupsAndUsersAssignedToWorkspace( context.Context, *apiv1.GetGroupsAndUsersAssignedToWorkspaceRequest, ) (*apiv1.GetGroupsAndUsersAssignedToWorkspaceResponse, error) GetRolesByID(context.Context, *apiv1.GetRolesByIDRequest) ( *apiv1.GetRolesByIDResponse, error) GetRolesAssignedToUser(context.Context, *apiv1.GetRolesAssignedToUserRequest) ( *apiv1.GetRolesAssignedToUserResponse, error) GetRolesAssignedToGroup(context.Context, *apiv1.GetRolesAssignedToGroupRequest) ( *apiv1.GetRolesAssignedToGroupResponse, error) SearchRolesAssignableToScope(context.Context, *apiv1.SearchRolesAssignableToScopeRequest) ( *apiv1.SearchRolesAssignableToScopeResponse, error) ListRoles(context.Context, *apiv1.ListRolesRequest) ( *apiv1.ListRolesResponse, error) AssignRoles(context.Context, *apiv1.AssignRolesRequest) ( *apiv1.AssignRolesResponse, error) RemoveAssignments(context.Context, *apiv1.RemoveAssignmentsRequest) ( *apiv1.RemoveAssignmentsResponse, error) AssignWorkspaceAdminToUserTx( ctx context.Context, idb bun.IDB, workspaceID int, userID model.UserID, ) error }
RBACAPIServer is the interface for all functions in RBAC.
type RBACAPIServerWrapper ¶
type RBACAPIServerWrapper struct{}
RBACAPIServerWrapper is a struct that implements RBACAPIServer.
func (*RBACAPIServerWrapper) AssignRoles ¶
func (s *RBACAPIServerWrapper) AssignRoles(ctx context.Context, req *apiv1.AssignRolesRequest) ( *apiv1.AssignRolesResponse, error, )
AssignRoles is a wrapper the same function the RBACAPIServer interface.
func (*RBACAPIServerWrapper) AssignWorkspaceAdminToUserTx ¶
func (s *RBACAPIServerWrapper) AssignWorkspaceAdminToUserTx( ctx context.Context, idb bun.IDB, workspaceID int, userID model.UserID, ) error
AssignWorkspaceAdminToUserTx is a wrapper the same function the RBACAPIServer interface.
func (*RBACAPIServerWrapper) GetGroupsAndUsersAssignedToWorkspace ¶
func (s *RBACAPIServerWrapper) GetGroupsAndUsersAssignedToWorkspace( ctx context.Context, req *apiv1.GetGroupsAndUsersAssignedToWorkspaceRequest, ) (*apiv1.GetGroupsAndUsersAssignedToWorkspaceResponse, error)
GetGroupsAndUsersAssignedToWorkspace is a wrapper the same function the RBACAPIServer interface.
func (*RBACAPIServerWrapper) GetPermissionsSummary ¶
func (s *RBACAPIServerWrapper) GetPermissionsSummary( ctx context.Context, req *apiv1.GetPermissionsSummaryRequest, ) (*apiv1.GetPermissionsSummaryResponse, error)
GetPermissionsSummary is a wrapper the same function the RBACAPIServer interface.
func (*RBACAPIServerWrapper) GetRolesAssignedToGroup ¶
func (s *RBACAPIServerWrapper) GetRolesAssignedToGroup(ctx context.Context, req *apiv1.GetRolesAssignedToGroupRequest, ) (*apiv1.GetRolesAssignedToGroupResponse, error)
GetRolesAssignedToGroup is a wrapper the same function the RBACAPIServer interface.
func (*RBACAPIServerWrapper) GetRolesAssignedToUser ¶
func (s *RBACAPIServerWrapper) GetRolesAssignedToUser(ctx context.Context, req *apiv1.GetRolesAssignedToUserRequest, ) (*apiv1.GetRolesAssignedToUserResponse, error)
GetRolesAssignedToUser is a wrapper the same function the RBACAPIServer interface.
func (*RBACAPIServerWrapper) GetRolesByID ¶
func (s *RBACAPIServerWrapper) GetRolesByID(ctx context.Context, req *apiv1.GetRolesByIDRequest) ( resp *apiv1.GetRolesByIDResponse, err error, )
GetRolesByID is a wrapper the same function the RBACAPIServer interface.
func (*RBACAPIServerWrapper) ListRoles ¶
func (s *RBACAPIServerWrapper) ListRoles(ctx context.Context, req *apiv1.ListRolesRequest) ( *apiv1.ListRolesResponse, error, )
ListRoles is a wrapper the same function the RBACAPIServer interface.
func (*RBACAPIServerWrapper) RemoveAssignments ¶
func (s *RBACAPIServerWrapper) RemoveAssignments(ctx context.Context, req *apiv1.RemoveAssignmentsRequest, ) (*apiv1.RemoveAssignmentsResponse, error)
RemoveAssignments is a wrapper the same function the RBACAPIServer interface.
func (*RBACAPIServerWrapper) SearchRolesAssignableToScope ¶
func (s *RBACAPIServerWrapper) SearchRolesAssignableToScope( ctx context.Context, req *apiv1.SearchRolesAssignableToScopeRequest, ) (*apiv1.SearchRolesAssignableToScopeResponse, error)
SearchRolesAssignableToScope is a wrapper the same function the RBACAPIServer interface.