Documentation ¶
Index ¶
- Constants
- Variables
- func Filter[T any](slice []T, filter func(T) bool) []T
- func FindAccelerator(cfgPath string) (bool, string, error)
- func IsSingleNodeCluster(c client.Client) (bool, error)
- func NewLogWrapper() *logrusWrapper
- func NewLogger() *logrus.Logger
- func SetOsEnvIfNotSet(key, value string, logger logr.Logger) error
- type AcceleratorDiscoveryConfig
Constants ¶
View Source
const ( CONFIG_FILE_SIZE_LIMIT_IN_BYTES = 10485760 //10 MB SRIOV_PREFIX = "SRIOV_FEC_" PCI_PF_STUB_DASH = "pci-pf-stub" PCI_PF_STUB_UNDERSCORE = "pci_pf_stub" VFIO_PCI = "vfio-pci" VFIO_PCI_UNDERSCORE = "vfio_pci" IGB_UIO = "igb_uio" )
Variables ¶
Functions ¶
func NewLogWrapper ¶
func NewLogWrapper() *logrusWrapper
Types ¶
type AcceleratorDiscoveryConfig ¶
type AcceleratorDiscoveryConfig struct { VendorID map[string]string Class string SubClass string Devices map[string]string NodeLabel string }
func LoadDiscoveryConfig ¶
func LoadDiscoveryConfig(cfgPath string) (AcceleratorDiscoveryConfig, error)
Click to show internal directories.
Click to hide internal directories.