network

package
v0.9.4-test5 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

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
)

Jump to

Keyboard shortcuts

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