Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // KernelNetworkDevicesProvider stores function providing // functionality to get network interfaces KernelNetworkDevicesProvider = getKernelNetworkDevices // Vsctl stores function which executes ovs-vsctl command with given args Vsctl = vsctl // Devbind stores function which executes dpdk-devbind.py command with given args Devbind = devbind // ReattachDpdkPorts function pointer called before server is up and running ReattachDpdkPorts = reattachDpdkPorts )
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct { Endpoint string `json:"Endpoint"` HeartbeatInterval util.Duration `json:"HeartbeatInterval"` CertsDir string `json:"CertsDirectory"` }
Configuration describes JSON configuration
var ( // Config instantiate a configuration Config Configuration // DpdkEnabled var specifies if interface service can use DPDK drivers DpdkEnabled = true )
type InterfaceService ¶
type InterfaceService struct{}
InterfaceService provides service for managing physical network interfaces in kube-ovn mode. It exposes Get method which provides information about interfaces. It also exposes Attach and Detach methods which can be used to configure those interfaces.
func (*InterfaceService) Attach ¶
Attach triggers operation of attaching an interface to provided bridge. It requires full definition of Ports.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.