forwarder

package
v1.14.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 40 Imported by: 1

Documentation

Overview

Package forwarder provides interpose endpoint implementation for ovs forwarder which provides kernel and smartnic endpoints

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKernelServer

func NewKernelServer(ctx context.Context, tokenGenerator token.GeneratorFunc, tunnelIPCidr net.IP,
	l2Connections map[string]*ovsutil.L2ConnectionPoint, options ...Option,
) (endpoint.Endpoint, error)

NewKernelServer - returns kernel implementation of the ovsconnectns network service

func NewSriovServer

func NewSriovServer(ctx context.Context, tokenGenerator token.GeneratorFunc, tunnelIPCidr net.IP,
	pciPool resourcepool.PCIPool, resourcePool resourcepool.ResourcePool, sriovConfig *config.Config,
	l2Connections map[string]*ovsutil.L2ConnectionPoint, options ...Option,
) (endpoint.Endpoint, error)

NewSriovServer - returns sriov implementation of the ovsconnectns network service

Types

type Option added in v1.13.0

type Option func(o *forwarderOptions)

Option is an option pattern for forwarder chain elements

func WithAuthorizeMonitorConnectionServer added in v1.13.1

func WithAuthorizeMonitorConnectionServer(authorizeMonitorConnectionServer networkservice.MonitorConnectionServer) Option

WithAuthorizeMonitorConnectionServer sets authorization server chain element

func WithAuthorizeServer added in v1.13.1

func WithAuthorizeServer(authorizeServer networkservice.NetworkServiceServer) Option

WithAuthorizeServer sets authorization server chain element

func WithBridgeName added in v1.13.1

func WithBridgeName(bridgeName string) Option

WithBridgeName sets bridge name

func WithClientURL added in v1.13.1

func WithClientURL(clientURL *url.URL) Option

WithClientURL sets clientURL.

func WithDialOptions added in v1.13.0

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

WithDialOptions sets dial options

func WithDialTimeout added in v1.13.1

func WithDialTimeout(dialTimeout time.Duration) Option

WithDialTimeout sets dial timeout for the client

func WithName added in v1.13.1

func WithName(name string) Option

WithName sets forwarder name

func WithResourcePoolClient added in v1.13.1

func WithResourcePoolClient(resourcePoolClient networkservice.NetworkServiceClient) Option

WithResourcePoolClient sets resource pool client

func WithResourcePoolServer added in v1.13.1

func WithResourcePoolServer(resourcePoolServer networkservice.NetworkServiceServer) Option

WithResourcePoolServer sets resource pool server

func WithVxlanOptions added in v1.13.0

func WithVxlanOptions(opts ...vxlan.Option) Option

WithVxlanOptions sets vxlan option

Jump to

Keyboard shortcuts

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