types

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const RdmaNetStateVersion = "1.0"

RDMA Network state struct version minor should be bumped when new fields are added major should be bumped when non backward compatible changes are introduced

Variables

This section is empty.

Functions

This section is empty.

Types

type CNIArgs

type CNIArgs struct {
	CNI RdmaCNIArgs `json:"cni"`
}

type RdmaCNIArgs

type RdmaCNIArgs struct {
	types.CommonArgs
	Debug bool `json:"debug"` // Run CNI in debug mode
}

type RdmaNetConf

type RdmaNetConf struct {
	types.NetConf
	DeviceID string  `json:"deviceID"` // PCI address of a VF in valid sysfs format
	Args     CNIArgs `json:"args"`     // optional arguments passed to CNI as defined in CNI spec 0.2.0
}

type RdmaNetState

type RdmaNetState struct {
	// RDMA network state struct version
	Version string `json:"version"`
	// PCI device ID associated with the RDMA device
	DeviceID string `json:"deviceID"`
	// RDMA device name as originally appeared in sandbox
	SandboxRdmaDevName string `json:"sandboxRdmaDevName"`
	// RDMA device name in container
	ContainerRdmaDevName string `json:"containerRdmaDevName"`
}

func NewRdmaNetState

func NewRdmaNetState() RdmaNetState

Jump to

Keyboard shortcuts

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