mocks

package
v0.0.0-...-a586aca Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccelDevice

type AccelDevice struct {
	mock.Mock
}

AccelDevice is an autogenerated mock type for the AccelDevice type

func (*AccelDevice) GetAPIDevice

func (_m *AccelDevice) GetAPIDevice() *v1beta1.Device

GetAPIDevice provides a mock function with given fields:

func (*AccelDevice) GetDeviceCode

func (_m *AccelDevice) GetDeviceCode() string

GetDeviceCode provides a mock function with given fields:

func (*AccelDevice) GetDeviceSpecs

func (_m *AccelDevice) GetDeviceSpecs() []*v1beta1.DeviceSpec

GetDeviceSpecs provides a mock function with given fields:

func (*AccelDevice) GetDriver

func (_m *AccelDevice) GetDriver() string

GetDriver provides a mock function with given fields:

func (*AccelDevice) GetEnvVal

func (_m *AccelDevice) GetEnvVal() string

GetEnvVal provides a mock function with given fields:

func (*AccelDevice) GetMounts

func (_m *AccelDevice) GetMounts() []*v1beta1.Mount

GetMounts provides a mock function with given fields:

func (*AccelDevice) GetNumaInfo

func (_m *AccelDevice) GetNumaInfo() string

GetNumaInfo provides a mock function with given fields:

func (*AccelDevice) GetPciAddr

func (_m *AccelDevice) GetPciAddr() string

GetPciAddr provides a mock function with given fields:

func (*AccelDevice) GetPfPciAddr

func (_m *AccelDevice) GetPfPciAddr() string

GetPfPciAddr provides a mock function with given fields:

func (*AccelDevice) GetSubClass

func (_m *AccelDevice) GetSubClass() string

GetSubClass provides a mock function with given fields:

func (*AccelDevice) GetVFID

func (_m *AccelDevice) GetVFID() int

GetVFID provides a mock function with given fields:

func (*AccelDevice) GetVendor

func (_m *AccelDevice) GetVendor() string

GetVendor provides a mock function with given fields:

func (*AccelDevice) IsSriovPF

func (_m *AccelDevice) IsSriovPF() bool

IsSriovPF provides a mock function with given fields:

type DeviceInfoProvider

type DeviceInfoProvider struct {
	mock.Mock
}

DeviceInfoProvider is an autogenerated mock type for the DeviceInfoProvider type

func (*DeviceInfoProvider) GetDeviceSpecs

func (_m *DeviceInfoProvider) GetDeviceSpecs() []*v1beta1.DeviceSpec

GetDeviceSpecs provides a mock function with given fields:

func (*DeviceInfoProvider) GetEnvVal

func (_m *DeviceInfoProvider) GetEnvVal() string

GetEnvVal provides a mock function with given fields:

func (*DeviceInfoProvider) GetMounts

func (_m *DeviceInfoProvider) GetMounts() []*v1beta1.Mount

GetMounts provides a mock function with given fields:

type DeviceProvider

type DeviceProvider struct {
	mock.Mock
}

DeviceProvider is an autogenerated mock type for the DeviceProvider type

func (*DeviceProvider) AddTargetDevices

func (_m *DeviceProvider) AddTargetDevices(_a0 []*ghw.PCIDevice, _a1 int) error

AddTargetDevices provides a mock function with given fields: _a0, _a1

func (*DeviceProvider) GetDevices

func (_m *DeviceProvider) GetDevices(_a0 *types.ResourceConfig) []types.PciDevice

GetDevices provides a mock function with given fields: _a0

func (*DeviceProvider) GetDiscoveredDevices

func (_m *DeviceProvider) GetDiscoveredDevices() []*ghw.PCIDevice

GetDiscoveredDevices provides a mock function with given fields:

func (*DeviceProvider) GetFilteredDevices

func (_m *DeviceProvider) GetFilteredDevices(_a0 []types.PciDevice, _a1 *types.ResourceConfig) ([]types.PciDevice, error)

GetFilteredDevices provides a mock function with given fields: _a0, _a1

type DeviceSelector

type DeviceSelector struct {
	mock.Mock
}

DeviceSelector is an autogenerated mock type for the DeviceSelector type

func (*DeviceSelector) Filter

func (_m *DeviceSelector) Filter(_a0 []types.PciDevice) []types.PciDevice

Filter provides a mock function with given fields: _a0

type LinkWatcher

type LinkWatcher struct {
	mock.Mock
}

LinkWatcher is an autogenerated mock type for the LinkWatcher type

func (*LinkWatcher) Subscribe

func (_m *LinkWatcher) Subscribe()

Subscribe provides a mock function with given fields:

type NadUtils

type NadUtils struct {
	mock.Mock
}

NadUtils is an autogenerated mock type for the NadUtils type

func (*NadUtils) CleanDeviceInfoFile

func (_m *NadUtils) CleanDeviceInfoFile(resourceName string, deviceID string) error

CleanDeviceInfoFile provides a mock function with given fields: resourceName, deviceID

func (*NadUtils) SaveDeviceInfoFile

func (_m *NadUtils) SaveDeviceInfoFile(resourceName string, deviceID string, devInfo *v1.DeviceInfo) error

SaveDeviceInfoFile provides a mock function with given fields: resourceName, deviceID, devInfo

type PciDevice

type PciDevice struct {
	mock.Mock
}

PciDevice is an autogenerated mock type for the PciDevice type

func (*PciDevice) GetAPIDevice

func (_m *PciDevice) GetAPIDevice() *v1beta1.Device

GetAPIDevice provides a mock function with given fields:

func (*PciDevice) GetDeviceCode

func (_m *PciDevice) GetDeviceCode() string

GetDeviceCode provides a mock function with given fields:

func (*PciDevice) GetDeviceSpecs

func (_m *PciDevice) GetDeviceSpecs() []*v1beta1.DeviceSpec

GetDeviceSpecs provides a mock function with given fields:

func (*PciDevice) GetDriver

func (_m *PciDevice) GetDriver() string

GetDriver provides a mock function with given fields:

func (*PciDevice) GetEnvVal

func (_m *PciDevice) GetEnvVal() string

GetEnvVal provides a mock function with given fields:

func (*PciDevice) GetMounts

func (_m *PciDevice) GetMounts() []*v1beta1.Mount

GetMounts provides a mock function with given fields:

func (*PciDevice) GetNumaInfo

func (_m *PciDevice) GetNumaInfo() string

GetNumaInfo provides a mock function with given fields:

func (*PciDevice) GetPciAddr

func (_m *PciDevice) GetPciAddr() string

GetPciAddr provides a mock function with given fields:

func (*PciDevice) GetPfPciAddr

func (_m *PciDevice) GetPfPciAddr() string

GetPfPciAddr provides a mock function with given fields:

func (*PciDevice) GetSubClass

func (_m *PciDevice) GetSubClass() string

GetSubClass provides a mock function with given fields:

func (*PciDevice) GetVFID

func (_m *PciDevice) GetVFID() int

GetVFID provides a mock function with given fields:

func (*PciDevice) GetVendor

func (_m *PciDevice) GetVendor() string

GetVendor provides a mock function with given fields:

func (*PciDevice) IsSriovPF

func (_m *PciDevice) IsSriovPF() bool

IsSriovPF provides a mock function with given fields:

type PciNetDevice

type PciNetDevice struct {
	mock.Mock
}

PciNetDevice is an autogenerated mock type for the PciNetDevice type

func (*PciNetDevice) GetAPIDevice

func (_m *PciNetDevice) GetAPIDevice() *v1beta1.Device

GetAPIDevice provides a mock function with given fields:

func (*PciNetDevice) GetDDPProfiles

func (_m *PciNetDevice) GetDDPProfiles() string

GetDDPProfiles provides a mock function with given fields:

func (*PciNetDevice) GetDeviceCode

func (_m *PciNetDevice) GetDeviceCode() string

GetDeviceCode provides a mock function with given fields:

func (*PciNetDevice) GetDeviceSpecs

func (_m *PciNetDevice) GetDeviceSpecs() []*v1beta1.DeviceSpec

GetDeviceSpecs provides a mock function with given fields:

func (*PciNetDevice) GetDriver

func (_m *PciNetDevice) GetDriver() string

GetDriver provides a mock function with given fields:

func (*PciNetDevice) GetEnvVal

func (_m *PciNetDevice) GetEnvVal() string

GetEnvVal provides a mock function with given fields:

func (*PciNetDevice) GetLinkSpeed

func (_m *PciNetDevice) GetLinkSpeed() string

GetLinkSpeed provides a mock function with given fields:

func (*PciNetDevice) GetLinkType

func (_m *PciNetDevice) GetLinkType() string

GetLinkType provides a mock function with given fields:

func (*PciNetDevice) GetMounts

func (_m *PciNetDevice) GetMounts() []*v1beta1.Mount

GetMounts provides a mock function with given fields:

func (*PciNetDevice) GetNetName

func (_m *PciNetDevice) GetNetName() string

GetNetName provides a mock function with given fields:

func (*PciNetDevice) GetNumaInfo

func (_m *PciNetDevice) GetNumaInfo() string

GetNumaInfo provides a mock function with given fields:

func (*PciNetDevice) GetPFName

func (_m *PciNetDevice) GetPFName() string

GetPFName provides a mock function with given fields:

func (*PciNetDevice) GetPciAddr

func (_m *PciNetDevice) GetPciAddr() string

GetPciAddr provides a mock function with given fields:

func (*PciNetDevice) GetPfPciAddr

func (_m *PciNetDevice) GetPfPciAddr() string

GetPfPciAddr provides a mock function with given fields:

func (*PciNetDevice) GetRdmaSpec

func (_m *PciNetDevice) GetRdmaSpec() types.RdmaSpec

GetRdmaSpec provides a mock function with given fields:

func (*PciNetDevice) GetSubClass

func (_m *PciNetDevice) GetSubClass() string

GetSubClass provides a mock function with given fields:

func (*PciNetDevice) GetVFID

func (_m *PciNetDevice) GetVFID() int

GetVFID provides a mock function with given fields:

func (*PciNetDevice) GetVendor

func (_m *PciNetDevice) GetVendor() string

GetVendor provides a mock function with given fields:

func (*PciNetDevice) IsSriovPF

func (_m *PciNetDevice) IsSriovPF() bool

IsSriovPF provides a mock function with given fields:

type RdmaSpec

type RdmaSpec struct {
	mock.Mock
}

RdmaSpec is an autogenerated mock type for the RdmaSpec type

func (*RdmaSpec) GetRdmaDeviceSpec

func (_m *RdmaSpec) GetRdmaDeviceSpec() []*v1beta1.DeviceSpec

GetRdmaDeviceSpec provides a mock function with given fields:

func (*RdmaSpec) IsRdma

func (_m *RdmaSpec) IsRdma() bool

IsRdma provides a mock function with given fields:

type ResourceFactory

type ResourceFactory struct {
	mock.Mock
}

ResourceFactory is an autogenerated mock type for the ResourceFactory type

func (*ResourceFactory) GetDefaultInfoProvider

func (_m *ResourceFactory) GetDefaultInfoProvider(_a0 string, _a1 string) types.DeviceInfoProvider

GetDefaultInfoProvider provides a mock function with given fields: _a0, _a1

func (*ResourceFactory) GetDeviceFilter

func (_m *ResourceFactory) GetDeviceFilter(_a0 *types.ResourceConfig) (interface{}, error)

GetDeviceFilter provides a mock function with given fields: _a0

func (*ResourceFactory) GetDeviceProvider

func (_m *ResourceFactory) GetDeviceProvider(_a0 types.DeviceType) types.DeviceProvider

GetDeviceProvider provides a mock function with given fields: _a0

func (*ResourceFactory) GetNadUtils

func (_m *ResourceFactory) GetNadUtils() types.NadUtils

GetNadUtils provides a mock function with given fields:

func (*ResourceFactory) GetRdmaSpec

func (_m *ResourceFactory) GetRdmaSpec(_a0 string) types.RdmaSpec

GetRdmaSpec provides a mock function with given fields: _a0

func (*ResourceFactory) GetResourcePool

func (_m *ResourceFactory) GetResourcePool(rc *types.ResourceConfig, deviceList []types.PciDevice) (types.ResourcePool, error)

GetResourcePool provides a mock function with given fields: rc, deviceList

func (*ResourceFactory) GetResourceServer

func (_m *ResourceFactory) GetResourceServer(_a0 types.ResourcePool) (types.ResourceServer, error)

GetResourceServer provides a mock function with given fields: _a0

func (*ResourceFactory) GetSelector

func (_m *ResourceFactory) GetSelector(_a0 string, _a1 []string) (types.DeviceSelector, error)

GetSelector provides a mock function with given fields: _a0, _a1

type ResourcePool

type ResourcePool struct {
	mock.Mock
}

ResourcePool is an autogenerated mock type for the ResourcePool type

func (*ResourcePool) CleanDeviceInfoFile

func (_m *ResourcePool) CleanDeviceInfoFile(resourceNamePrefix string) error

CleanDeviceInfoFile provides a mock function with given fields: resourceNamePrefix

func (*ResourcePool) GetDeviceSpecs

func (_m *ResourcePool) GetDeviceSpecs(deviceIDs []string) []*v1beta1.DeviceSpec

GetDeviceSpecs provides a mock function with given fields: deviceIDs

func (*ResourcePool) GetDevices

func (_m *ResourcePool) GetDevices() map[string]*v1beta1.Device

GetDevices provides a mock function with given fields:

func (*ResourcePool) GetEnvs

func (_m *ResourcePool) GetEnvs(deviceIDs []string) []string

GetEnvs provides a mock function with given fields: deviceIDs

func (*ResourcePool) GetMounts

func (_m *ResourcePool) GetMounts(deviceIDs []string) []*v1beta1.Mount

GetMounts provides a mock function with given fields: deviceIDs

func (*ResourcePool) GetResourceName

func (_m *ResourcePool) GetResourceName() string

GetResourceName provides a mock function with given fields:

func (*ResourcePool) GetResourcePrefix

func (_m *ResourcePool) GetResourcePrefix() string

GetResourcePrefix provides a mock function with given fields:

func (*ResourcePool) Probe

func (_m *ResourcePool) Probe() bool

Probe provides a mock function with given fields:

func (*ResourcePool) StoreDeviceInfoFile

func (_m *ResourcePool) StoreDeviceInfoFile(resourceNamePrefix string) error

StoreDeviceInfoFile provides a mock function with given fields: resourceNamePrefix

type ResourceServer

type ResourceServer struct {
	mock.Mock
}

ResourceServer is an autogenerated mock type for the ResourceServer type

func (*ResourceServer) Allocate

Allocate provides a mock function with given fields: _a0, _a1

func (*ResourceServer) GetDevicePluginOptions

func (_m *ResourceServer) GetDevicePluginOptions(_a0 context.Context, _a1 *v1beta1.Empty) (*v1beta1.DevicePluginOptions, error)

GetDevicePluginOptions provides a mock function with given fields: _a0, _a1

func (*ResourceServer) Init

func (_m *ResourceServer) Init() error

Init provides a mock function with given fields:

func (*ResourceServer) ListAndWatch

ListAndWatch provides a mock function with given fields: _a0, _a1

func (*ResourceServer) PreStartContainer

PreStartContainer provides a mock function with given fields: _a0, _a1

func (*ResourceServer) Start

func (_m *ResourceServer) Start() error

Start provides a mock function with given fields:

func (*ResourceServer) Stop

func (_m *ResourceServer) Stop() error

Stop provides a mock function with given fields:

func (*ResourceServer) Watch

func (_m *ResourceServer) Watch()

Watch provides a mock function with given fields:

Jump to

Keyboard shortcuts

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