grpc

package
v2.0.9+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package grpc is the policy engine service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDefaults

func InitDefaults(ctx context.Context) error

InitDefaults is called once at first launch to create default policy groups.

func Upgrade101 added in v1.0.1

func Upgrade101(ctx context.Context) error

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

func Upgrade103(ctx context.Context) error

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

func Upgrade120(ctx context.Context) error

Upgrade120 performs upgrade on policies starting at v1.2.0

func Upgrade122 added in v1.2.2

func Upgrade122(ctx context.Context) error

Upgrade122 adapts policy dbs. It is called once at service launch when Cells version become >= 1.2.2.

func Upgrade142 added in v1.5.0

func Upgrade142(ctx context.Context) error

Upgrade120 performs upgrade on policies starting at v1.2.0

func Upgrade202

func Upgrade202(ctx context.Context) error

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

Jump to

Keyboard shortcuts

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