manager

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPCLock added in v0.5.0

type IPCLock interface {
	Lock() error
	Unlock() error
}

IPCLock provides a way to lock and unlock around critical sections given each CNI instance runs as a separate process. Currently this is with a lockfile.

func NewIPCLock added in v0.5.0

func NewIPCLock(lockfile string) IPCLock

NewIPClock returns an instance of ipclock, which itself is a wrapper around a lockfile capable of being used with flock()

type Manager

type Manager interface {
	SetupVF(conf *types.PluginConf, podifName string, cid string, netns ns.NetNS) (string, error)
	ReleaseVF(conf *types.PluginConf, podifName string, cid string, netns ns.NetNS) error
	ResetVFConfig(conf *types.PluginConf) error
	ApplyVFConfig(conf *types.PluginConf) error
	AttachRepresentor(conf *types.PluginConf) error
	DetachRepresentor(conf *types.PluginConf) error
}

Manager provides interface invoke sriov nic related operations

func NewManager

func NewManager() Manager

NewManager returns an instance of manager

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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