mocks

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetlinkManager added in v1.1.0

type NetlinkManager struct {
	mock.Mock
}

NetlinkManager is an autogenerated mock type for the NetlinkManager type

func (*NetlinkManager) LinkByName added in v1.1.0

func (_m *NetlinkManager) LinkByName(_a0 string) (netlink.Link, error)

LinkByName provides a mock function with given fields: _a0

func (*NetlinkManager) LinkSetUp added in v1.2.0

func (_m *NetlinkManager) LinkSetUp(_a0 netlink.Link) error

LinkSetUp provides a mock function with given fields: _a0

type PciNetDevice added in v1.1.0

type PciNetDevice struct {
	mock.Mock
}

PciNetDevice is an autogenerated mock type for the PciNetDevice type

func (*PciNetDevice) GetDeviceID added in v1.1.0

func (_m *PciNetDevice) GetDeviceID() string

GetDeviceID provides a mock function with given fields:

func (*PciNetDevice) GetDriver added in v1.1.0

func (_m *PciNetDevice) GetDriver() string

GetDriver provides a mock function with given fields:

func (*PciNetDevice) GetIfName added in v1.1.0

func (_m *PciNetDevice) GetIfName() string

GetIfName provides a mock function with given fields:

func (*PciNetDevice) GetLinkType added in v1.1.0

func (_m *PciNetDevice) GetLinkType() string

GetLinkType provides a mock function with given fields:

func (*PciNetDevice) GetPciAddr added in v1.1.0

func (_m *PciNetDevice) GetPciAddr() string

GetPciAddr provides a mock function with given fields:

func (*PciNetDevice) GetRdmaSpec added in v1.1.0

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

GetRdmaSpec provides a mock function with given fields:

func (*PciNetDevice) GetVendor added in v1.1.0

func (_m *PciNetDevice) GetVendor() string

GetVendor provides a mock function with given fields:

type RdmaDeviceSpec

type RdmaDeviceSpec struct {
	mock.Mock
}

RdmaDeviceSpec is an autogenerated mock type for the RdmaDeviceSpec type

func (*RdmaDeviceSpec) Get

func (_m *RdmaDeviceSpec) Get(_a0 string) []*v1beta1.DeviceSpec

Get provides a mock function with given fields: _a0

func (*RdmaDeviceSpec) VerifyRdmaSpec added in v1.1.0

func (_m *RdmaDeviceSpec) VerifyRdmaSpec(_a0 []*v1beta1.DeviceSpec) error

VerifyRdmaSpec provides a mock function with given fields: _a0

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) GetPreferredAllocation added in v1.4.0

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

func (_m *ResourceServer) Restart() error

Restart provides a mock function with given fields:

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) UpdateDevices added in v1.1.0

func (_m *ResourceServer) UpdateDevices(_a0 []types.PciNetDevice)

UpdateDevices provides a mock function with given fields: _a0

func (*ResourceServer) Watch

func (_m *ResourceServer) Watch()

Watch provides a mock function with given fields:

type ResourceServerConnector

type ResourceServerConnector struct {
	mock.Mock
}

ResourceServerConnector is an autogenerated mock type for the ResourceServerConnector type

func (*ResourceServerConnector) Close

func (_m *ResourceServerConnector) Close(_a0 *grpc.ClientConn)

Close provides a mock function with given fields: _a0

func (*ResourceServerConnector) CreateServer

func (_m *ResourceServerConnector) CreateServer()

CreateServer provides a mock function with given fields:

func (*ResourceServerConnector) DeleteServer

func (_m *ResourceServerConnector) DeleteServer()

DeleteServer provides a mock function with given fields:

func (*ResourceServerConnector) Dial

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

func (*ResourceServerConnector) GetServer

func (_m *ResourceServerConnector) GetServer() *grpc.Server

GetServer provides a mock function with given fields:

func (*ResourceServerConnector) Listen

func (_m *ResourceServerConnector) Listen(_a0 string, _a1 string) (net.Listener, error)

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

func (*ResourceServerConnector) Register

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

func (*ResourceServerConnector) Serve

func (_m *ResourceServerConnector) Serve(_a0 net.Listener)

Serve provides a mock function with given fields: _a0

func (*ResourceServerConnector) Stop

func (_m *ResourceServerConnector) Stop()

Stop 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