config

package
v0.0.0-...-a1e8e67 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetArgs

type NetArgs struct {
	types.CommonArgs
	VF   UnmarshallableInt          `json:"vf,omitempty"`
	VLAN UnmarshallableInt          `json:"vlan,omitempty"`
	MAC  types.UnmarshallableString `json:"mac,omitempty"`
}

type NetConf

type NetConf struct {
	types.NetConf
	Master string `json:"master"`
	PFOnly bool   `json:"pfOnly"`
}

type SriovConf

type SriovConf struct {
	Net  *NetConf
	Args *NetArgs
}

func LoadConf

func LoadConf(bytes []byte, args string) (*SriovConf, error)

type UnmarshallableInt

type UnmarshallableInt int

func (*UnmarshallableInt) UnmarshalText

func (i *UnmarshallableInt) UnmarshalText(data []byte) error

Jump to

Keyboard shortcuts

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