Documentation
¶
Index ¶
- type ConfigValidation
- func (_m *ConfigValidation) AdvancedPCISettingsEnabled(nvConfig types.NvConfigQuery) bool
- func (_m *ConfigValidation) CalculateDesiredRuntimeConfig(device *v1alpha1.NicDevice) (int, *v1alpha1.QosSpec)
- func (_m *ConfigValidation) ConstructNvParamMapFromTemplate(device *v1alpha1.NicDevice, nvConfigQuery types.NvConfigQuery) (map[string]string, error)
- func (_m *ConfigValidation) RuntimeConfigApplied(device *v1alpha1.NicDevice) (bool, error)
- func (_m *ConfigValidation) ValidateResetToDefault(nvConfig types.NvConfigQuery) (bool, bool, error)
- type ConfigurationManager
- func (_m *ConfigurationManager) ApplyDeviceNvSpec(ctx context.Context, device *v1alpha1.NicDevice) (bool, error)
- func (_m *ConfigurationManager) ApplyDeviceRuntimeSpec(device *v1alpha1.NicDevice) error
- func (_m *ConfigurationManager) ResetNicFirmware(ctx context.Context, device *v1alpha1.NicDevice) error
- func (_m *ConfigurationManager) ValidateDeviceNvSpec(ctx context.Context, device *v1alpha1.NicDevice) (bool, bool, error)
- type ConfigurationUtils
- func (_m *ConfigurationUtils) GetLinkType(name string) string
- func (_m *ConfigurationUtils) GetMaxReadRequestSize(pciAddr string) (int, error)
- func (_m *ConfigurationUtils) GetPCILinkSpeed(pciAddr string) (int, error)
- func (_m *ConfigurationUtils) GetQoSSettings(device *v1alpha1.NicDevice, interfaceName string) (*v1alpha1.QosSpec, error)
- func (_m *ConfigurationUtils) ResetNicFirmware(ctx context.Context, pciAddr string) error
- func (_m *ConfigurationUtils) SetMaxReadRequestSize(pciAddr string, maxReadRequestSize int) error
- func (_m *ConfigurationUtils) SetQoSSettings(device *v1alpha1.NicDevice, spec *v1alpha1.QosSpec) error
- type MaintenanceManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigValidation ¶
ConfigValidation is an autogenerated mock type for the ConfigValidation type
func (*ConfigValidation) AdvancedPCISettingsEnabled ¶
func (_m *ConfigValidation) AdvancedPCISettingsEnabled(nvConfig types.NvConfigQuery) bool
AdvancedPCISettingsEnabled provides a mock function with given fields: nvConfig
func (*ConfigValidation) CalculateDesiredRuntimeConfig ¶
func (_m *ConfigValidation) CalculateDesiredRuntimeConfig(device *v1alpha1.NicDevice) (int, *v1alpha1.QosSpec)
CalculateDesiredRuntimeConfig provides a mock function with given fields: device
func (*ConfigValidation) ConstructNvParamMapFromTemplate ¶
func (_m *ConfigValidation) ConstructNvParamMapFromTemplate(device *v1alpha1.NicDevice, nvConfigQuery types.NvConfigQuery) (map[string]string, error)
ConstructNvParamMapFromTemplate provides a mock function with given fields: device, nvConfigQuery
func (*ConfigValidation) RuntimeConfigApplied ¶
func (_m *ConfigValidation) RuntimeConfigApplied(device *v1alpha1.NicDevice) (bool, error)
RuntimeConfigApplied provides a mock function with given fields: device
func (*ConfigValidation) ValidateResetToDefault ¶
func (_m *ConfigValidation) ValidateResetToDefault(nvConfig types.NvConfigQuery) (bool, bool, error)
ValidateResetToDefault provides a mock function with given fields: nvConfig
type ConfigurationManager ¶
ConfigurationManager is an autogenerated mock type for the ConfigurationManager type
func NewConfigurationManager ¶
func NewConfigurationManager(t interface {
mock.TestingT
Cleanup(func())
}) *ConfigurationManager
NewConfigurationManager creates a new instance of ConfigurationManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ConfigurationManager) ApplyDeviceNvSpec ¶
func (_m *ConfigurationManager) ApplyDeviceNvSpec(ctx context.Context, device *v1alpha1.NicDevice) (bool, error)
ApplyDeviceNvSpec provides a mock function with given fields: ctx, device
func (*ConfigurationManager) ApplyDeviceRuntimeSpec ¶
func (_m *ConfigurationManager) ApplyDeviceRuntimeSpec(device *v1alpha1.NicDevice) error
ApplyDeviceRuntimeSpec provides a mock function with given fields: device
func (*ConfigurationManager) ResetNicFirmware ¶
func (_m *ConfigurationManager) ResetNicFirmware(ctx context.Context, device *v1alpha1.NicDevice) error
ResetNicFirmware provides a mock function with given fields: ctx, device
func (*ConfigurationManager) ValidateDeviceNvSpec ¶
func (_m *ConfigurationManager) ValidateDeviceNvSpec(ctx context.Context, device *v1alpha1.NicDevice) (bool, bool, error)
ValidateDeviceNvSpec provides a mock function with given fields: ctx, device
type ConfigurationUtils ¶
ConfigurationUtils is an autogenerated mock type for the ConfigurationUtils type
func NewConfigurationUtils ¶
func NewConfigurationUtils(t interface {
mock.TestingT
Cleanup(func())
}) *ConfigurationUtils
NewConfigurationUtils creates a new instance of ConfigurationUtils. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ConfigurationUtils) GetLinkType ¶
func (_m *ConfigurationUtils) GetLinkType(name string) string
GetLinkType provides a mock function with given fields: name
func (*ConfigurationUtils) GetMaxReadRequestSize ¶
func (_m *ConfigurationUtils) GetMaxReadRequestSize(pciAddr string) (int, error)
GetMaxReadRequestSize provides a mock function with given fields: pciAddr
func (*ConfigurationUtils) GetPCILinkSpeed ¶
func (_m *ConfigurationUtils) GetPCILinkSpeed(pciAddr string) (int, error)
GetPCILinkSpeed provides a mock function with given fields: pciAddr
func (*ConfigurationUtils) GetQoSSettings ¶ added in v1.2.0
func (_m *ConfigurationUtils) GetQoSSettings(device *v1alpha1.NicDevice, interfaceName string) (*v1alpha1.QosSpec, error)
GetQoSSettings provides a mock function with given fields: device, interfaceName
func (*ConfigurationUtils) ResetNicFirmware ¶
func (_m *ConfigurationUtils) ResetNicFirmware(ctx context.Context, pciAddr string) error
ResetNicFirmware provides a mock function with given fields: ctx, pciAddr
func (*ConfigurationUtils) SetMaxReadRequestSize ¶
func (_m *ConfigurationUtils) SetMaxReadRequestSize(pciAddr string, maxReadRequestSize int) error
SetMaxReadRequestSize provides a mock function with given fields: pciAddr, maxReadRequestSize
func (*ConfigurationUtils) SetQoSSettings ¶ added in v1.2.0
func (_m *ConfigurationUtils) SetQoSSettings(device *v1alpha1.NicDevice, spec *v1alpha1.QosSpec) error
SetQoSSettings provides a mock function with given fields: device, spec
type MaintenanceManager ¶
MaintenanceManager is an autogenerated mock type for the MaintenanceManager type
func NewMaintenanceManager ¶
func NewMaintenanceManager(t interface {
mock.TestingT
Cleanup(func())
}) *MaintenanceManager
NewMaintenanceManager creates a new instance of MaintenanceManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MaintenanceManager) MaintenanceAllowed ¶
func (_m *MaintenanceManager) MaintenanceAllowed(ctx context.Context) (bool, error)
MaintenanceAllowed provides a mock function with given fields: ctx
func (*MaintenanceManager) Reboot ¶
func (_m *MaintenanceManager) Reboot() error
Reboot provides a mock function with given fields:
func (*MaintenanceManager) ReleaseMaintenance ¶
func (_m *MaintenanceManager) ReleaseMaintenance(ctx context.Context) error
ReleaseMaintenance provides a mock function with given fields: ctx
func (*MaintenanceManager) ScheduleMaintenance ¶
func (_m *MaintenanceManager) ScheduleMaintenance(ctx context.Context) error
ScheduleMaintenance provides a mock function with given fields: ctx