nsmgrproxy

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: Apache-2.0 Imports: 26 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 WithAuthorizeServer

func WithAuthorizeServer(authorizeServer networkservice.NetworkServiceServer) Option

WithAuthorizeServer sets authorize server for the server

func WithConnectOptions

func WithConnectOptions(connectOptions ...connect.Option) Option

WithConnectOptions sets connect Options 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

func WithRegistryConnectOptions

func WithRegistryConnectOptions(connectOptions ...registryconnect.Option) Option

WithRegistryConnectOptions sets registry connect options

Jump to

Keyboard shortcuts

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