vfconfig

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: 1 Imported by: 2

Documentation

Overview

Package vfconfig provides VF config

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithConfig

func WithConfig(parent context.Context, config *VFConfig) context.Context

WithConfig returns new context with VFConfig

Types

type VFConfig

type VFConfig struct {
	// PFInterfaceName is a parent PF net interface name
	PFInterfaceName string
	// VFInterfaceName is a VF net interface name
	VFInterfaceName string
	// VFNum is a VF num for the parent PF
	VFNum int
}

VFConfig is a config for VF

func Config

func Config(ctx context.Context) *VFConfig

Config returns VFConfig from context

Jump to

Keyboard shortcuts

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