set

package
v0.0.0-...-4ce7761 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CPUConfigLabels

func CPUConfigLabels(apiClient *clients.Settings,
	blackListLabels,
	whiteListLabels []string,
	enableTopology bool,
	namespace,
	image string)

CPUConfigLabels set cpu blacklist/whitelist.

Types

type CPUConfig

type CPUConfig struct {
	CPUID struct {
		AttributeBlacklist []string `yaml:"attributeBlacklist,omitempty"`
		AttributeWhitelist []string `yaml:"attributeWhitelist,omitempty"`
	} `yaml:"cpuid,omitempty"`
}

CPUConfig cpu feature config.

type Config

type Config struct {
	Sources Sources `yaml:"sources"`
}

Config worker-config.

type PCIDevice

type PCIDevice struct {
	DeviceClassWhitelist []string `yaml:"deviceClassWhitelist,omitempty"`
	DeviceLabelFields    []string `yaml:"deviceLabelFields,omitempty"`
}

PCIDevice pci config.

type Sources

type Sources struct {
	CPU    *CPUConfig    `yaml:"cpu,omitempty"`
	PCI    []PCIDevice   `yaml:"pci,omitempty"`
	USB    []interface{} `yaml:"usb,omitempty"`    // Add the necessary struct for USB if needed
	Custom []interface{} `yaml:"custom,omitempty"` // Add the necessary struct for Custom if needed
}

Sources contains all sources.

Jump to

Keyboard shortcuts

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