config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultCNIDir used for caching NetConf
	DefaultCNIDir = "/var/lib/cni/ib-sriov"
	// CniFileLockDir point to the CNI's lockfile
	CniFileLockDir = "/var/run/cni/ib-sriov"
	// CniFileLockName is the name of the lockfile used in the CNI
	CniFileLockName = "cni.lock"
)

Functions

func LoadConf

func LoadConf(bytes []byte) (*types.NetConf, error)

LoadConf parses and validates stdin netconf and returns NetConf object

func LoadConfFromCache

func LoadConfFromCache(args *skel.CmdArgs) (*types.NetConf, string, error)

LoadConfFromCache retrieves cached NetConf returns it along with a handle for removal

func LoadDeviceInfo

func LoadDeviceInfo(netConf *types.NetConf) error

Load device specific information into netConf

Types

This section is empty.

Jump to

Keyboard shortcuts

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