usrsptypes

package
v0.0.0-...-b15e717 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BridgeConf

type BridgeConf struct {
	BridgeId int `json:"bridgeId"`         // Bridge Id
	VlanId   int `json:"vlanId,onitempty"` // Optional VLAN Id
}

type MemifConf

type MemifConf struct {
	Role string `json:"role"` // Role of memif: master|slave
	Mode string `json:"mode"` // Mode of memif: ip|ethernet|inject-punt
}

type NetConf

type NetConf struct {
	types.NetConf
	Name          string        `json:"name"`
	If0name       string        `json:"if0name,omitempty"` // Interface name
	HostConf      UserSpaceConf `json:"host,omitempty"`
	ContainerConf UserSpaceConf `json:"container,omitempty"`
}

type UserSpaceConf

type UserSpaceConf struct {
	// The Container Instance will default to the Host Instance value if a given attribute
	// is not provided. However, they are not required to be the same and a Container
	// attribute can be provided to override. All values are listed as 'omitempty' to
	// allow the Container struct to be empty where desired.
	Engine     string     `json:"engine,omitempty"`  // CNI Implementation {vpp|ovs|ovs-dpdk|linux}
	IfType     string     `json:"iftype,omitempty"`  // Type of interface {memif|vhostuser|veth|tap}
	NetType    string     `json:"netType,omitempty"` // Interface network type {none|bridge|interface}
	MemifConf  MemifConf  `json:"memif,omitempty"`
	VhostConf  VhostConf  `json:"vhost,omitempty"`
	BridgeConf BridgeConf `json:"bridge,omitempty"`
}

type UsrSpCni

type UsrSpCni interface {
	AddOnHost(conf *NetConf, containerID string, ipResult *current.Result) error
	AddOnContainer(conf *NetConf, containerID string, ipResult *current.Result) error
	DelFromHost(conf *NetConf, containerID string) error
	DelFromContainer(conf *NetConf, containerID string) error
}

Exported Types

type VhostConf

type VhostConf struct {
	Mode string `json:"mode"` // vhost-user mode: client|server
}

Jump to

Keyboard shortcuts

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