kernel

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 9 Imported by: 12

Documentation

Overview

Package kernel provides the necessary mechanisms to request and inject a kernel interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(opts ...Option) networkservice.NetworkServiceClient

NewClient - returns client that sets kernel preferred mechanism

func NewServer

func NewServer(opts ...Option) networkservice.NetworkServiceServer

NewServer - creates a NetworkServiceServer that requests a kernel interface and populates the netns inode

Types

type Option

type Option func(o *options)

Option is an option pattern for kernelMechanismClient/Server

func WithInterfaceName

func WithInterfaceName(interfaceName string) Option

WithInterfaceName sets interface name

func WithInterfaceNameGenerator added in v1.13.0

func WithInterfaceNameGenerator(generator func() (string, error)) Option

WithInterfaceNameGenerator sets a generator for generating random interface names

Directories

Path Synopsis
Package vlan provides server chain element setting vlan id on the kernel mechanism
Package vlan provides server chain element setting vlan id on the kernel mechanism

Jump to

Keyboard shortcuts

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