Documentation ¶
Overview ¶
Package nsmgr provides a Network Service Manager (nsmgrServer), but interface and implementation
Index ¶
- type Nsmgr
- type Option
- func WithAuthorizeMonitorConnectionServer(authorizeMonitorConnectionServer networkservice.MonitorConnectionServer) Option
- func WithAuthorizeNSERegistryClient(authorizeNSERegistryClient registryapi.NetworkServiceEndpointRegistryClient) Option
- func WithAuthorizeNSERegistryServer(authorizeNSERegistryServer registryapi.NetworkServiceEndpointRegistryServer) Option
- func WithAuthorizeNSRegistryClient(authorizeNSRegistryClient registryapi.NetworkServiceRegistryClient) Option
- func WithAuthorizeNSRegistryServer(authorizeNSRegistryServer registryapi.NetworkServiceRegistryServer) Option
- func WithAuthorizeServer(authorizeServer networkservice.NetworkServiceServer) Option
- func WithDefaultExpiration(d time.Duration) Option
- func WithDialOptions(dialOptions ...grpc.DialOption) Option
- func WithDialTimeout(dialTimeout time.Duration) Option
- func WithForwarderServiceName(forwarderServiceName string) Option
- func WithName(name string) Option
- func WithRegistry(regURL *url.URL) Option
- func WithURL(u string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Nsmgr ¶
type Nsmgr interface { networkservice.NetworkServiceServer networkservice.MonitorConnectionServer registry.Registry }
Nsmgr - A simple combination of the Endpoint, registry.NetworkServiceRegistryServer, and registry.NetworkServiceDiscoveryServer interfaces
type Option ¶
type Option func(o *serverOptions)
Option modifies server option value
func WithAuthorizeMonitorConnectionServer ¶ added in v1.5.0
func WithAuthorizeMonitorConnectionServer(authorizeMonitorConnectionServer networkservice.MonitorConnectionServer) Option
WithAuthorizeMonitorConnectionServer sets authorization MonitorConnectionServer chain element
func WithAuthorizeNSERegistryClient ¶ added in v1.7.0
func WithAuthorizeNSERegistryClient(authorizeNSERegistryClient registryapi.NetworkServiceEndpointRegistryClient) Option
WithAuthorizeNSERegistryClient sets authorization NetworkServiceEndpointRegistry chain element
func WithAuthorizeNSERegistryServer ¶ added in v1.6.0
func WithAuthorizeNSERegistryServer(authorizeNSERegistryServer registryapi.NetworkServiceEndpointRegistryServer) Option
WithAuthorizeNSERegistryServer sets authorization NetworkServiceEndpointRegistry chain element
func WithAuthorizeNSRegistryClient ¶ added in v1.7.0
func WithAuthorizeNSRegistryClient(authorizeNSRegistryClient registryapi.NetworkServiceRegistryClient) Option
WithAuthorizeNSRegistryClient sets authorization NetworkServiceRegistry chain element
func WithAuthorizeNSRegistryServer ¶ added in v1.6.0
func WithAuthorizeNSRegistryServer(authorizeNSRegistryServer registryapi.NetworkServiceRegistryServer) Option
WithAuthorizeNSRegistryServer sets authorization NetworkServiceRegistry chain element
func WithAuthorizeServer ¶
func WithAuthorizeServer(authorizeServer networkservice.NetworkServiceServer) Option
WithAuthorizeServer sets authorization server chain element
func WithDefaultExpiration ¶ added in v1.7.1
WithDefaultExpiration sets the default expiration for endpoints
func WithDialOptions ¶ added in v1.1.0
func WithDialOptions(dialOptions ...grpc.DialOption) Option
WithDialOptions sets grpc.DialOptions for the client
func WithDialTimeout ¶ added in v1.1.0
WithDialTimeout sets dial timeout for the client
func WithForwarderServiceName ¶ added in v1.1.0
WithForwarderServiceName overrides default forwarder service name By default "forwarder"
func WithRegistry ¶
WithRegistry sets URL and dial options to reach the upstream registry, if not passed memory storage will be used.