rpc

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserRoleBindingsToProtoRoles

func UserRoleBindingsToProtoRoles(da dao.DataAccessor, roleBindings []*model.UserRoleBinding) []*pb.Role

UserRoleBindingsToProtoRoles fetches a role for every binding and that way fills in the permissions as well.

func ValidateRole

func ValidateRole(r *model.Role) error

Types

type IndigoServiceServer

type IndigoServiceServer struct {
	pb.UnimplementedIndigoServiceServer
	Dao dao.DataAccessor
}

func (IndigoServiceServer) AddRolePermissions

func (IndigoServiceServer) AddUserPermissions

func (IndigoServiceServer) AddUserRoles

func (IndigoServiceServer) DeleteRole

func (IndigoServiceServer) GetRole

func (IndigoServiceServer) GetUser

func (IndigoServiceServer) GetUserPermissions

func (IndigoServiceServer) GetUserRoles

func (IndigoServiceServer) HasPermission

func (IndigoServiceServer) InsertRole

func (IndigoServiceServer) ListRoles

func (IndigoServiceServer) RemoveRolePermissions

func (IndigoServiceServer) RemoveUserPermissions

func (IndigoServiceServer) RemoveUserRoles

func (IndigoServiceServer) UpdateRole

Jump to

Keyboard shortcuts

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