Documentation ¶
Index ¶
- func ConvertGrpcReqToOpenAPIReq(in *pb.ApplicationContext) (*policymanager.GetPolicyDecisionsRequest, string, error)
- func ConvertGrpcRespToOpenAPIResp(result *pb.PoliciesDecisions) (*policymanager.GetPolicyDecisionsResponse, error)
- func ConvertOpenAPIReqToGrpcReq(in *policymanager.GetPolicyDecisionsRequest, creds string) (*pb.ApplicationContext, error)
- func ConvertOpenAPIRespToGrpcResp(out *policymanager.GetPolicyDecisionsResponse, datasetID string, ...) (*pb.PoliciesDecisions, error)
- func MergePoliciesDecisions(in ...*pb.PoliciesDecisions) *pb.PoliciesDecisions
- type PolicyManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertGrpcReqToOpenAPIReq ¶
func ConvertGrpcReqToOpenAPIReq(in *pb.ApplicationContext) (*policymanager.GetPolicyDecisionsRequest, string, error)
func ConvertGrpcRespToOpenAPIResp ¶
func ConvertGrpcRespToOpenAPIResp(result *pb.PoliciesDecisions) (*policymanager.GetPolicyDecisionsResponse, error)
func ConvertOpenAPIReqToGrpcReq ¶
func ConvertOpenAPIReqToGrpcReq(in *policymanager.GetPolicyDecisionsRequest, creds string) (*pb.ApplicationContext, error)
func ConvertOpenAPIRespToGrpcResp ¶
func ConvertOpenAPIRespToGrpcResp( out *policymanager.GetPolicyDecisionsResponse, datasetID string, op *pb.AccessOperation) (*pb.PoliciesDecisions, error)
func MergePoliciesDecisions ¶
func MergePoliciesDecisions(in ...*pb.PoliciesDecisions) *pb.PoliciesDecisions
Types ¶
type PolicyManager ¶
type PolicyManager interface { GetPoliciesDecisions(in *policymanager.GetPolicyDecisionsRequest, creds string) (*policymanager.GetPolicyDecisionsResponse, error) io.Closer }
PolicyManager is an interface of a facade to connect to a policy manager.
func NewGrpcPolicyManager ¶
func NewGrpcPolicyManager(name string, connectionURL string, connectionTimeout time.Duration) (PolicyManager, error)
NewGrpcPolicyManager creates a PolicyManager facade that connects to a GRPC service You must call .Close() when you are done using the created instance
func NewOpenAPIPolicyManager ¶
func NewOpenAPIPolicyManager(name string, connectionURL string, connectionTimeout time.Duration) (PolicyManager, error)
NewopenApiPolicyManager creates a PolicyManager facade that connects to a openApi service
Click to show internal directories.
Click to hide internal directories.