Documentation ¶
Overview ¶
Package grpc is the policy engine service
Index ¶
- Constants
- func NewHandler(ctx context.Context, dao policy.DAO) idm.NamedPolicyEngineServiceServer
- type Handler
- func (h *Handler) DeletePolicyGroup(ctx context.Context, request *idm.DeletePolicyGroupRequest) (*idm.DeletePolicyGroupResponse, error)
- func (h *Handler) IsAllowed(ctx context.Context, request *idm.PolicyEngineRequest) (*idm.PolicyEngineResponse, error)
- func (h *Handler) ListPolicyGroups(ctx context.Context, request *idm.ListPolicyGroupsRequest) (*idm.ListPolicyGroupsResponse, error)
- func (h *Handler) Name() string
- func (h *Handler) StorePolicyGroup(ctx context.Context, request *idm.StorePolicyGroupRequest) (*idm.StorePolicyGroupResponse, error)
- func (h *Handler) StreamPolicyGroups(request *idm.ListPolicyGroupsRequest, ...) error
Constants ¶
View Source
const ServiceName = common.ServiceGrpcNamespace_ + common.ServicePolicy
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
Types ¶
type Handler ¶
type Handler struct { idm.UnimplementedPolicyEngineServiceServer // contains filtered or unexported fields }
func (*Handler) DeletePolicyGroup ¶
func (h *Handler) DeletePolicyGroup(ctx context.Context, request *idm.DeletePolicyGroupRequest) (*idm.DeletePolicyGroupResponse, error)
func (*Handler) IsAllowed ¶
func (h *Handler) IsAllowed(ctx context.Context, request *idm.PolicyEngineRequest) (*idm.PolicyEngineResponse, error)
func (*Handler) ListPolicyGroups ¶
func (h *Handler) ListPolicyGroups(ctx context.Context, request *idm.ListPolicyGroupsRequest) (*idm.ListPolicyGroupsResponse, error)
func (*Handler) StorePolicyGroup ¶
func (h *Handler) StorePolicyGroup(ctx context.Context, request *idm.StorePolicyGroupRequest) (*idm.StorePolicyGroupResponse, error)
func (*Handler) StreamPolicyGroups ¶ added in v4.1.4
func (h *Handler) StreamPolicyGroups(request *idm.ListPolicyGroupsRequest, stream idm.PolicyEngineService_StreamPolicyGroupsServer) error
StreamPolicyGroups performs same listing as ListPolicyGroups but answer with a stream
Click to show internal directories.
Click to hide internal directories.