clients

package
v0.6.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 17 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 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

Jump to

Keyboard shortcuts

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