Documentation ¶
Overview ¶
Package authorize provides authz checks for incoming or returning connections.
Package authorize provides authz checks for incoming or returning connections.
Code generated by "-output sync_map.gen.go -type spiffeIDResourcesMap<github.com/spiffe/go-spiffe/v2/spiffeid.ID,*github.com/networkservicemesh/sdk/pkg/tools/stringset.StringSet> -output sync_map.gen.go -type spiffeIDResourcesMap<github.com/spiffe/go-spiffe/v2/spiffeid.ID,*github.com/networkservicemesh/sdk/pkg/tools/stringset.StringSet>"; DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNetworkServiceEndpointRegistryServer ¶
func NewNetworkServiceEndpointRegistryServer(opts ...Option) registry.NetworkServiceEndpointRegistryServer
NewNetworkServiceEndpointRegistryServer - returns a new authorization registry.NetworkServiceEndpointRegistryServer Authorize registry server checks spiffeID of NSE.
func NewNetworkServiceRegistryServer ¶
func NewNetworkServiceRegistryServer(opts ...Option) registry.NetworkServiceRegistryServer
NewNetworkServiceRegistryServer - returns a new authorization registry.NetworkServiceRegistryServer Authorize registry server checks spiffeID of NS.
Types ¶
type Option ¶
type Option func(*options)
Option is authorization option for server
func WithPolicies ¶
WithPolicies sets custom policies for registry
func WithSpiffeIDResourcesMap ¶
func WithSpiffeIDResourcesMap(m *spiffeIDResourcesMap) Option
WithSpiffeIDResourcesMap sets map to keep spiffeIDResourcesMap to authorize connections with Registry Authorize Chain Element