Documentation ¶
Index ¶
- Variables
- func InitRoles(ctx context.Context) error
- func NewHandler() idm.RoleServiceServer
- func UpgradeTo12(ctx context.Context) error
- func UpgradeTo4199(ctx context.Context) error
- func UpgradeTo421(ctx context.Context) error
- type Cleaner
- type Handler
- func (h *Handler) CountRole(ctx context.Context, request *idm.SearchRoleRequest) (*idm.CountRoleResponse, error)
- func (h *Handler) CreateRole(ctx context.Context, req *idm.CreateRoleRequest) (*idm.CreateRoleResponse, error)
- func (h *Handler) DeleteRole(ctx context.Context, req *idm.DeleteRoleRequest) (*idm.DeleteRoleResponse, error)
- func (h *Handler) SearchRole(request *idm.SearchRoleRequest, response idm.RoleService_SearchRoleServer) error
- func (h *Handler) StreamRole(streamer idm.RoleService_StreamRoleServer) error
Constants ¶
This section is empty.
Variables ¶
View Source
var GrpcServiceMigrations = []*service.Migration{ { TargetVersion: service.FirstRun(), Up: InitRoles, }, { TargetVersion: service.ValidVersion("1.2.0"), Up: UpgradeTo12, }, { TargetVersion: service.ValidVersion("4.1.99"), Up: UpgradeTo4199, }, { TargetVersion: service.ValidVersion("4.2.1"), Up: UpgradeTo421, }, }
Functions ¶
func NewHandler ¶
func NewHandler() idm.RoleServiceServer
func UpgradeTo12 ¶
func UpgradeTo4199 ¶
func UpgradeTo421 ¶
Types ¶
type Cleaner ¶
type Cleaner struct { resources.PoliciesCleaner // contains filtered or unexported fields }
func NewCleaner ¶
func NewCleaner(handler idm.RoleServiceServer) *Cleaner
type Handler ¶
type Handler struct { idm.UnimplementedRoleServiceServer service.Service }
Handler definition
func (*Handler) CountRole ¶
func (h *Handler) CountRole(ctx context.Context, request *idm.SearchRoleRequest) (*idm.CountRoleResponse, error)
CountRole in database
func (*Handler) CreateRole ¶
func (h *Handler) CreateRole(ctx context.Context, req *idm.CreateRoleRequest) (*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) (*idm.DeleteRoleResponse, error)
DeleteRole from database
func (*Handler) SearchRole ¶
func (h *Handler) SearchRole(request *idm.SearchRoleRequest, response idm.RoleService_SearchRoleServer) error
SearchRole in database
func (*Handler) StreamRole ¶
func (h *Handler) StreamRole(streamer idm.RoleService_StreamRoleServer) error
StreamRole from database
Click to show internal directories.
Click to hide internal directories.