mocks

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceInfoProvider

type DeviceInfoProvider struct {
	mock.Mock
}

DeviceInfoProvider is an autogenerated mock type for the DeviceInfoProvider type

func (*DeviceInfoProvider) GetDeviceSpecs

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

GetDeviceSpecs provides a mock function with given fields: pciAddr

func (*DeviceInfoProvider) GetEnvVal

func (_m *DeviceInfoProvider) GetEnvVal(pciAddr string) string

GetEnvVal provides a mock function with given fields: pciAddr

func (*DeviceInfoProvider) GetMounts

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

GetMounts provides a mock function with given fields: pciAddr

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.PciNetDevice) []types.PciNetDevice

Filter provides a mock function with given fields: _a0

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) 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) 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) 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) 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 ResourceFactory

type ResourceFactory struct {
	mock.Mock
}

ResourceFactory is an autogenerated mock type for the ResourceFactory type

func (*ResourceFactory) GetInfoProvider

func (_m *ResourceFactory) GetInfoProvider(_a0 string) types.DeviceInfoProvider

GetInfoProvider provides a mock function with given fields: _a0

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.PciNetDevice) (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) 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) Probe

func (_m *ResourcePool) Probe() bool

Probe provides a mock function with given fields:

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