Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerSideNetwork ¶
type ContainerSideNetwork struct { // Result contains CNI result object describing the network settings Result *cnicurrent.Result // NsPath specifies the path to the container network namespace NsPath string // Interfaces contains a list of interfaces with data needed // to configure them Interfaces []InterfaceDescription }
ContainerSideNetwork struct describes the container (VM) network namespace properties
type InterfaceDescription ¶
type InterfaceDescription struct { // Type contains interface type designator Type InterfaceType // Fo contains open File object pointing to tap device inside network // namespace or to control file in sysfs for sr-iov VF Fo *os.File // Name containes original interface name for sr-iov interface Name string // HardwareAddr contains original hardware address for CNI-created // veth link HardwareAddr net.HardwareAddr // PCIAddress contains a pci address for sr-iov vf interface PCIAddress string // MTU contains max transfer unit value for interface MTU uint16 }
type InterfaceType ¶
type InterfaceType int
InterfaceType presents type of network interface instance
const ( InterfaceTypeTap InterfaceType = iota InterfaceTypeVF )
Click to show internal directories.
Click to hide internal directories.