clients

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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