mocks

package
v2.3.0-dev.49 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 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 DeviceValidator added in v2.2.0

type DeviceValidator struct {
	mock.Mock
}

DeviceValidator is an autogenerated mock type for the DeviceValidator type

func (*DeviceValidator) ValidateDevice added in v2.2.0

func (_m *DeviceValidator) ValidateDevice(device models.Device) error

ValidateDevice provides a mock function with given fields: device

type ProtocolDriver

type ProtocolDriver struct {
	mock.Mock
}

ProtocolDriver is an autogenerated mock type for the ProtocolDriver type

func (*ProtocolDriver) AddDevice

func (_m *ProtocolDriver) AddDevice(deviceName string, protocols map[string]models.ProtocolProperties, adminState models.AdminState) error

AddDevice provides a mock function with given fields: deviceName, protocols, adminState

func (*ProtocolDriver) HandleReadCommands

func (_m *ProtocolDriver) HandleReadCommands(deviceName string, protocols map[string]models.ProtocolProperties, reqs []pkgmodels.CommandRequest) ([]*pkgmodels.CommandValue, error)

HandleReadCommands provides a mock function with given fields: deviceName, protocols, reqs

func (*ProtocolDriver) HandleWriteCommands

func (_m *ProtocolDriver) HandleWriteCommands(deviceName string, protocols map[string]models.ProtocolProperties, reqs []pkgmodels.CommandRequest, params []*pkgmodels.CommandValue) error

HandleWriteCommands provides a mock function with given fields: deviceName, protocols, reqs, params

func (*ProtocolDriver) Initialize

func (_m *ProtocolDriver) Initialize(lc logger.LoggingClient, asyncCh chan<- *pkgmodels.AsyncValues, deviceCh chan<- []pkgmodels.DiscoveredDevice) error

Initialize provides a mock function with given fields: lc, asyncCh, deviceCh

func (*ProtocolDriver) RemoveDevice

func (_m *ProtocolDriver) RemoveDevice(deviceName string, protocols map[string]models.ProtocolProperties) error

RemoveDevice provides a mock function with given fields: deviceName, protocols

func (*ProtocolDriver) Stop

func (_m *ProtocolDriver) Stop(force bool) error

Stop provides a mock function with given fields: force

func (*ProtocolDriver) UpdateDevice

func (_m *ProtocolDriver) UpdateDevice(deviceName string, protocols map[string]models.ProtocolProperties, adminState models.AdminState) error

UpdateDevice provides a mock function with given fields: deviceName, protocols, adminState

Jump to

Keyboard shortcuts

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