Documentation ¶
Index ¶
- Constants
- type Config
- type GroupMapping
- type VfDevicePlugin
- func (d *VfDevicePlugin) ConfigSchema() (*hclspec.Spec, error)
- func (d *VfDevicePlugin) Fingerprint(ctx context.Context) (<-chan *device.FingerprintResponse, error)
- func (d *VfDevicePlugin) PluginInfo() (*base.PluginInfoResponse, error)
- func (d *VfDevicePlugin) Reserve(deviceIDs []string) (*device.ContainerReservation, error)
- func (d *VfDevicePlugin) SetConfig(c *base.Config) error
- func (d *VfDevicePlugin) Stats(ctx context.Context, interval time.Duration) (<-chan *device.StatsResponse, error)
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 GroupMapping ¶
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) Stats ¶
func (d *VfDevicePlugin) Stats(ctx context.Context, interval time.Duration) (<-chan *device.StatsResponse, error)
Click to show internal directories.
Click to hide internal directories.