Documentation ¶
Overview ¶
Package authorize provides authz checks for incoming or returning connections.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(opts ...Option) networkservice.NetworkServiceClient
NewClient - returns a new authorization networkservicemesh.NetworkServiceClient Authorize client checks rigiht side of path.
func NewServer ¶
func NewServer(opts ...Option) networkservice.NetworkServiceServer
NewServer - returns a new authorization networkservicemesh.NetworkServiceServers Authorize server checks left side of Path.
Types ¶
type Option ¶
type Option func(*options)
Option is authorization option for network service server
func WithPolicies ¶
WithPolicies sets custom policies for networkservice. policyPaths can be combination of both policy files and dirs with policies
func WithSpiffeIDConnectionMap ¶ added in v1.5.0
func WithSpiffeIDConnectionMap(s *genericsync.Map[spiffeid.ID, *genericsync.Map[string, struct{}]]) Option
WithSpiffeIDConnectionMap sets map to keep spiffeIDConnectionMap to authorize connections with MonitorConnectionServer
Click to show internal directories.
Click to hide internal directories.