config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// MaxSharedVf defines maximum number of PFs a VF is being shared
	MaxSharedVf = 2
)

Functions

func AssignFreeVF

func AssignFreeVF(conf *sriovtypes.NetConf) error

AssignFreeVF takes in a NetConf object and updates it with an self allocated VF information

func LoadConf

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

LoadConf parses and validates stdin netconf and returns NetConf object

Types

type MyNetlink struct {
	// contains filtered or unexported fields
}

MyNetlink NetlinkManager

func (*MyNetlink) LinkByName added in v1.1.0

func (n *MyNetlink) LinkByName(name string) (netlink.Link, error)

LinkByName implements NetlinkManager

type NetlinkManager added in v1.1.0

type NetlinkManager interface {
	LinkByName(string) (netlink.Link, error)
}

NetlinkManager is an interface to get link by name

Jump to

Keyboard shortcuts

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