forwarder

package
v1.13.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 37 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, name string, authzServer networkservice.NetworkServiceServer,
	authzMonitorServer networkservice.MonitorConnectionServer, tokenGenerator token.GeneratorFunc,
	clientURL *url.URL, bridgeName string, tunnelIPCidr net.IP, dialTimeout time.Duration,
	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, name string, authzServer networkservice.NetworkServiceServer,
	authzMonitorServer networkservice.MonitorConnectionServer, tokenGenerator token.GeneratorFunc,
	clientURL *url.URL, bridgeName string, tunnelIPCidr net.IP, pciPool resourcepool.PCIPool,
	resourcePool resourcepool.ResourcePool, sriovConfig *config.Config, dialTimeout time.Duration,
	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 WithDialOptions added in v1.13.0

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

WithDialOptions sets dial options

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