mocks

package
v2.3.0-dev.43 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 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 DeviceServiceSDK

type DeviceServiceSDK struct {
	mock.Mock
}

DeviceServiceSDK is an autogenerated mock type for the DeviceServiceSDK type

func NewDeviceServiceSDK

func NewDeviceServiceSDK(t mockConstructorTestingTNewDeviceServiceSDK) *DeviceServiceSDK

NewDeviceServiceSDK creates a new instance of DeviceServiceSDK. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DeviceServiceSDK) AddDevice

func (_m *DeviceServiceSDK) AddDevice(device models.Device) (string, error)

AddDevice provides a mock function with given fields: device

func (*DeviceServiceSDK) AddDeviceAutoEvent

func (_m *DeviceServiceSDK) AddDeviceAutoEvent(deviceName string, event models.AutoEvent) error

AddDeviceAutoEvent provides a mock function with given fields: deviceName, event

func (*DeviceServiceSDK) AddDeviceProfile

func (_m *DeviceServiceSDK) AddDeviceProfile(profile models.DeviceProfile) (string, error)

AddDeviceProfile provides a mock function with given fields: profile

func (*DeviceServiceSDK) AddProvisionWatcher

func (_m *DeviceServiceSDK) AddProvisionWatcher(watcher models.ProvisionWatcher) (string, error)

AddProvisionWatcher provides a mock function with given fields: watcher

func (*DeviceServiceSDK) AddRoute

func (_m *DeviceServiceSDK) AddRoute(route string, handler func(http.ResponseWriter, *http.Request), methods ...string) error

AddRoute provides a mock function with given fields: route, handler, methods

func (*DeviceServiceSDK) AsyncReadings

func (_m *DeviceServiceSDK) AsyncReadings() bool

AsyncReadings provides a mock function with given fields:

func (*DeviceServiceSDK) DeviceCommand

func (_m *DeviceServiceSDK) DeviceCommand(deviceName string, commandName string) (models.DeviceCommand, bool)

DeviceCommand provides a mock function with given fields: deviceName, commandName

func (*DeviceServiceSDK) DeviceDiscovery

func (_m *DeviceServiceSDK) DeviceDiscovery() bool

DeviceDiscovery provides a mock function with given fields:

func (*DeviceServiceSDK) DeviceProfiles

func (_m *DeviceServiceSDK) DeviceProfiles() []models.DeviceProfile

DeviceProfiles provides a mock function with given fields:

func (*DeviceServiceSDK) DeviceResource

func (_m *DeviceServiceSDK) DeviceResource(deviceName string, deviceResource string) (models.DeviceResource, bool)

DeviceResource provides a mock function with given fields: deviceName, deviceResource

func (*DeviceServiceSDK) Devices

func (_m *DeviceServiceSDK) Devices() []models.Device

Devices provides a mock function with given fields:

func (*DeviceServiceSDK) DriverConfigs

func (_m *DeviceServiceSDK) DriverConfigs() map[string]string

DriverConfigs provides a mock function with given fields:

func (*DeviceServiceSDK) GetDeviceByName

func (_m *DeviceServiceSDK) GetDeviceByName(name string) (models.Device, error)

GetDeviceByName provides a mock function with given fields: name

func (*DeviceServiceSDK) GetLoggingClient

func (_m *DeviceServiceSDK) GetLoggingClient() logger.LoggingClient

GetLoggingClient provides a mock function with given fields:

func (*DeviceServiceSDK) GetMetricsManager

func (_m *DeviceServiceSDK) GetMetricsManager() bootstrapinterfaces.MetricsManager

GetMetricsManager provides a mock function with given fields:

func (*DeviceServiceSDK) GetProfileByName

func (_m *DeviceServiceSDK) GetProfileByName(name string) (models.DeviceProfile, error)

GetProfileByName provides a mock function with given fields: name

func (*DeviceServiceSDK) GetProvisionWatcherByName

func (_m *DeviceServiceSDK) GetProvisionWatcherByName(name string) (models.ProvisionWatcher, error)

GetProvisionWatcherByName provides a mock function with given fields: name

func (*DeviceServiceSDK) GetSecretProvider

func (_m *DeviceServiceSDK) GetSecretProvider() bootstrapinterfaces.SecretProvider

GetSecretProvider provides a mock function with given fields:

func (*DeviceServiceSDK) ListenForCustomConfigChanges

func (_m *DeviceServiceSDK) ListenForCustomConfigChanges(configToWatch interface{}, sectionName string, changedCallback func(interface{})) error

ListenForCustomConfigChanges provides a mock function with given fields: configToWatch, sectionName, changedCallback

func (*DeviceServiceSDK) LoadCustomConfig

func (_m *DeviceServiceSDK) LoadCustomConfig(customConfig service.UpdatableConfig, sectionName string) error

LoadCustomConfig provides a mock function with given fields: customConfig, sectionName

func (*DeviceServiceSDK) Name

func (_m *DeviceServiceSDK) Name() string

Name provides a mock function with given fields:

func (*DeviceServiceSDK) ProvisionWatchers

func (_m *DeviceServiceSDK) ProvisionWatchers() []models.ProvisionWatcher

ProvisionWatchers provides a mock function with given fields:

func (*DeviceServiceSDK) RemoveDeviceAutoEvent

func (_m *DeviceServiceSDK) RemoveDeviceAutoEvent(deviceName string, event models.AutoEvent) error

RemoveDeviceAutoEvent provides a mock function with given fields: deviceName, event

func (*DeviceServiceSDK) RemoveDeviceByName

func (_m *DeviceServiceSDK) RemoveDeviceByName(name string) error

RemoveDeviceByName provides a mock function with given fields: name

func (*DeviceServiceSDK) RemoveDeviceProfileByName

func (_m *DeviceServiceSDK) RemoveDeviceProfileByName(name string) error

RemoveDeviceProfileByName provides a mock function with given fields: name

func (*DeviceServiceSDK) RemoveProvisionWatcher

func (_m *DeviceServiceSDK) RemoveProvisionWatcher(name string) error

RemoveProvisionWatcher provides a mock function with given fields: name

func (*DeviceServiceSDK) SetDeviceOpState

func (_m *DeviceServiceSDK) SetDeviceOpState(name string, state models.OperatingState) error

SetDeviceOpState provides a mock function with given fields: name, state

func (*DeviceServiceSDK) Stop

func (_m *DeviceServiceSDK) Stop(force bool)

Stop provides a mock function with given fields: force

func (*DeviceServiceSDK) UpdateDevice

func (_m *DeviceServiceSDK) UpdateDevice(device models.Device) error

UpdateDevice provides a mock function with given fields: device

func (*DeviceServiceSDK) UpdateDeviceOperatingState

func (_m *DeviceServiceSDK) UpdateDeviceOperatingState(deviceName string, state string) error

UpdateDeviceOperatingState provides a mock function with given fields: deviceName, state

func (*DeviceServiceSDK) UpdateDeviceProfile

func (_m *DeviceServiceSDK) UpdateDeviceProfile(profile models.DeviceProfile) error

UpdateDeviceProfile provides a mock function with given fields: profile

func (*DeviceServiceSDK) UpdateProvisionWatcher

func (_m *DeviceServiceSDK) UpdateProvisionWatcher(watcher models.ProvisionWatcher) error

UpdateProvisionWatcher provides a mock function with given fields: watcher

func (*DeviceServiceSDK) Version

func (_m *DeviceServiceSDK) Version() string

Version 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