Documentation ¶
Overview ¶
Package grpc is the policy engine service
Index ¶
- func InitDefaults(ctx context.Context) error
- func Upgrade101(ctx context.Context) error
- func Upgrade103(ctx context.Context) error
- func Upgrade120(ctx context.Context) error
- type Handler
- func (h *Handler) DeletePolicyGroup(ctx context.Context, request *idm.DeletePolicyGroupRequest, ...) error
- func (h *Handler) IsAllowed(ctx context.Context, request *idm.PolicyEngineRequest, ...) error
- func (h *Handler) ListPolicyGroups(ctx context.Context, request *idm.ListPolicyGroupsRequest, ...) error
- func (h *Handler) StorePolicyGroup(ctx context.Context, request *idm.StorePolicyGroupRequest, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitDefaults ¶
InitDefaults is called once at first launch to create default policy groups.
func Upgrade101 ¶ added in v1.0.1
Upgrade101 adapts policy dbs. It is called once at service launch when Cells version become >= 1.0.1.
func Upgrade103 ¶ added in v1.0.3
Upgrade103 adapts policy dbs. It is called once at service launch when Cells version become >= 1.0.3 .
func Upgrade120 ¶ added in v1.2.0
Upgrade120 performs upgrade on policies starting at v1.2.0
Types ¶
type Handler ¶
type Handler struct { }
func (*Handler) DeletePolicyGroup ¶
func (h *Handler) DeletePolicyGroup(ctx context.Context, request *idm.DeletePolicyGroupRequest, response *idm.DeletePolicyGroupResponse) error
func (*Handler) IsAllowed ¶
func (h *Handler) IsAllowed(ctx context.Context, request *idm.PolicyEngineRequest, response *idm.PolicyEngineResponse) error
func (*Handler) ListPolicyGroups ¶
func (h *Handler) ListPolicyGroups(ctx context.Context, request *idm.ListPolicyGroupsRequest, response *idm.ListPolicyGroupsResponse) error
func (*Handler) StorePolicyGroup ¶
func (h *Handler) StorePolicyGroup(ctx context.Context, request *idm.StorePolicyGroupRequest, response *idm.StorePolicyGroupResponse) error
Click to show internal directories.
Click to hide internal directories.