Documentation ¶
Index ¶
- func ConvertGrpcReqToOpenAPIReq(in *pb.ApplicationContext) (*taxonomymodels.PolicyManagerRequest, string, error)
- func ConvertGrpcRespToOpenAPIResp(result *pb.PoliciesDecisions) (*taxonomymodels.PolicyManagerResponse, error)
- func ConvertOpenAPIReqToGrpcReq(in *taxonomymodels.PolicyManagerRequest, creds string) (*pb.ApplicationContext, error)
- func ConvertOpenAPIRespToGrpcResp(out *taxonomymodels.PolicyManagerResponse, datasetID string, ...) (*pb.PoliciesDecisions, error)
- func MergePoliciesDecisions(in ...*pb.PoliciesDecisions) *pb.PoliciesDecisions
- type DataCatalog
- type PolicyManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertGrpcReqToOpenAPIReq ¶ added in v0.5.0
func ConvertGrpcReqToOpenAPIReq(in *pb.ApplicationContext) (*taxonomymodels.PolicyManagerRequest, string, error)
func ConvertGrpcRespToOpenAPIResp ¶ added in v0.5.0
func ConvertGrpcRespToOpenAPIResp(result *pb.PoliciesDecisions) (*taxonomymodels.PolicyManagerResponse, error)
func ConvertOpenAPIReqToGrpcReq ¶ added in v0.5.0
func ConvertOpenAPIReqToGrpcReq(in *taxonomymodels.PolicyManagerRequest, creds string) (*pb.ApplicationContext, error)
func ConvertOpenAPIRespToGrpcResp ¶ added in v0.5.0
func ConvertOpenAPIRespToGrpcResp( out *taxonomymodels.PolicyManagerResponse, datasetID string, op *pb.AccessOperation) (*pb.PoliciesDecisions, error)
func MergePoliciesDecisions ¶
func MergePoliciesDecisions(in ...*pb.PoliciesDecisions) *pb.PoliciesDecisions
Types ¶
type DataCatalog ¶
type DataCatalog interface { pb.DataCatalogServiceServer io.Closer }
DataCatalog is an interface of a facade to a data catalog.
func NewGrpcDataCatalog ¶
func NewGrpcDataCatalog(name string, connectionURL string, connectionTimeout time.Duration) (DataCatalog, error)
NewGrpcDataCatalog creates a DataCatalog facade that connects to a GRPC service You must call .Close() when you are done using the created instance
type PolicyManager ¶
type PolicyManager interface { GetPoliciesDecisions(in *taxonomymodels.PolicyManagerRequest, creds string) (*taxonomymodels.PolicyManagerResponse, 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 ¶ added in v0.5.0
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.