xconnectns

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Overview

Package xconnectns provides an Endpoint implementing the SR-IOV Forwarder networks service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(
	ctx context.Context,
	name string,
	authzServer networkservice.NetworkServiceServer,
	authzMonitorConnectionServer networkservice.MonitorConnectionServer,
	tokenGenerator token.GeneratorFunc,
	pciPool resourcepool.PCIPool,
	resourcePool resourcepool.ResourcePool,
	sriovConfig *config.Config,
	vfioDir, cgroupBaseDir string,
	clientURL *url.URL,
	dialTimeout time.Duration,
	clientDialOptions ...grpc.DialOption,
) endpoint.Endpoint

NewServer - returns an Endpoint implementing the SR-IOV Forwarder networks service

  • name - name of the Forwarder
  • authzServer - policy for allowing or rejecting requests
  • tokenGenerator - token.GeneratorFunc - generates tokens for use in Path
  • pciPool - provides PCI functions
  • resourcePool - provides SR-IOV resources
  • sriovConfig - SR-IOV PCI functions config
  • vfioDir - host /dev/vfio directory mount location
  • cgroupBaseDir - host /sys/fs/cgroup/devices directory mount location
  • clientUrl - *url.URL for the talking to the NSMgr
  • ...clientDialOptions - dialOptions for dialing the NSMgr

Types

This section is empty.

Jump to

Keyboard shortcuts

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