clients

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 {
	pb.PolicyManagerServiceServer
	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 NewMultiPolicyManager

func NewMultiPolicyManager(managers ...PolicyManager) PolicyManager

NewMultiPolicyManager creates a PolicyManager facade that combines results from multiple policy managers You must call .Close() when you are done using the created instance

Jump to

Keyboard shortcuts

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