Documentation ¶
Overview ¶
Package grpc provides persistence layer for CRUD-ing roles
Index ¶
- func InitRoles(ctx context.Context) error
- func UpgradeTo12(ctx context.Context) error
- type Cleaner
- type Handler
- func (h *Handler) CountRole(ctx context.Context, request *idm.SearchRoleRequest, ...) error
- func (h *Handler) CreateRole(ctx context.Context, req *idm.CreateRoleRequest, resp *idm.CreateRoleResponse) error
- func (h *Handler) DeleteRole(ctx context.Context, req *idm.DeleteRoleRequest, ...) error
- func (h *Handler) SearchRole(ctx context.Context, request *idm.SearchRoleRequest, ...) error
- func (h *Handler) StreamRole(ctx context.Context, streamer idm.RoleService_StreamRoleStream) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpgradeTo12 ¶ added in v1.2.0
Types ¶
type Cleaner ¶
type Cleaner struct { resources.PoliciesCleaner // contains filtered or unexported fields }
type Handler ¶
type Handler struct{}
Handler definition
func (*Handler) CountRole ¶
func (h *Handler) CountRole(ctx context.Context, request *idm.SearchRoleRequest, response *idm.CountRoleResponse) error
CountRole in database
func (*Handler) CreateRole ¶
func (h *Handler) CreateRole(ctx context.Context, req *idm.CreateRoleRequest, resp *idm.CreateRoleResponse) error
CreateRole adds a role and its policies in database
func (*Handler) DeleteRole ¶
func (h *Handler) DeleteRole(ctx context.Context, req *idm.DeleteRoleRequest, response *idm.DeleteRoleResponse) error
DeleteRole from database
func (*Handler) SearchRole ¶
func (h *Handler) SearchRole(ctx context.Context, request *idm.SearchRoleRequest, response idm.RoleService_SearchRoleStream) error
SearchRole in database
func (*Handler) StreamRole ¶
StreamRole from database
Click to show internal directories.
Click to hide internal directories.