vf

package
v0.0.0-...-587549f Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// attributes for device groups (pf-level)
	PfDriverAttr          = "pf_driver"
	PfDriverVersionAttr   = "pf_driver_version"
	PfFirmwareVersionAttr = "pf_firmware_version"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled           bool     `codec:"enabled"`
	Vendors           []string `codec:"vendors"`
	FingerprintPeriod string   `codec:"fingerprint_period"`
}

type GroupMapping

type GroupMapping struct {
	Devices host.Vfs
	Vendor  string
	Type    string
}

build fingerprint/stats response with computed groups {{ vendor }}/{{ device_type }}/{{ pf_address }} e.g. pensando/vf/0000.0000.0000

type VfDevicePlugin

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

func NewPlugin

func NewPlugin(log log.Logger) *VfDevicePlugin

initialize any map or slice attributes

func (*VfDevicePlugin) ConfigSchema

func (d *VfDevicePlugin) ConfigSchema() (*hclspec.Spec, error)

func (*VfDevicePlugin) Fingerprint

func (d *VfDevicePlugin) Fingerprint(ctx context.Context) (<-chan *device.FingerprintResponse, error)

func (*VfDevicePlugin) PluginInfo

func (d *VfDevicePlugin) PluginInfo() (*base.PluginInfoResponse, error)

func (*VfDevicePlugin) Reserve

func (d *VfDevicePlugin) Reserve(deviceIDs []string) (*device.ContainerReservation, error)

func (*VfDevicePlugin) SetConfig

func (d *VfDevicePlugin) SetConfig(c *base.Config) error

func (*VfDevicePlugin) Stats

func (d *VfDevicePlugin) Stats(ctx context.Context, interval time.Duration) (<-chan *device.StatsResponse, error)

Jump to

Keyboard shortcuts

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