nsmgrproxy

package
v1.13.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: Apache-2.0 Imports: 34 Imported by: 1

Documentation

Overview

Package nsmgrproxy provides chain of networkservice.NetworkServiceServer chain elements to creating NSMgrProxy

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(ctx context.Context, regURL, proxyURL *url.URL, tokenGenerator token.GeneratorFunc, options ...Option) nsmgr.Nsmgr

NewServer creates new proxy NSMgr

Types

type Option

type Option func(o *serverOptions)

Option modifies 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 authorize server for the server

func WithDialOptions added in v1.1.0

func WithDialOptions(dialOptions ...grpc.DialOption) Option

WithDialOptions sets connect Options for the server

func WithDialTimeout added in v1.1.0

func WithDialTimeout(dialTimeout time.Duration) Option

WithDialTimeout sets dial timeout for the server

func WithListenOn

func WithListenOn(u *url.URL) Option

WithListenOn sets current listenOn url

func WithMapIPFilePath

func WithMapIPFilePath(p string) Option

WithMapIPFilePath sets the custom path for the file that contains internal to external IPs information in YAML format

func WithName

func WithName(name string) Option

WithName sets name for the server

Jump to

Keyboard shortcuts

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