Documentation ¶
Overview ¶
Package vfconfig provides VF config
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 // VFPCIAddress is a VF pci address VFPCIAddress string // VFNum is a VF num for the parent PF VFNum int // ContNetNS is a container netns id on which VF is attached ContNetNS netns.NsHandle }
VFConfig is a config for VF
func Load ¶ added in v1.1.0
Load returns the VFConfig stored in per Connection.Id metadata, or nil if no value is present. The ok result indicates whether value was found in the per Connection.Id metadata.
func LoadAndDelete ¶ added in v1.1.0
LoadAndDelete deletes the VFConfig stored in per Connection.Id metadata, returning the previous value if any. The loaded result reports whether the key was present.
func LoadOrStore ¶ added in v1.1.0
LoadOrStore returns the existing VFConfig stored in per Connection.Id metadata if present. Otherwise, it stores and returns the given VFConfig. The loaded result is true if the value was loaded, false if stored.
Click to show internal directories.
Click to hide internal directories.