mocks

package
v0.0.1-dev.22 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 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 SDKService

type SDKService struct {
	mock.Mock
}

SDKService is an autogenerated mock type for the SDKService type

func NewSDKService

func NewSDKService(t mockConstructorTestingTNewSDKService) *SDKService

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

func (*SDKService) AddDevice

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

AddDevice provides a mock function with given fields: device

func (*SDKService) AddDeviceAutoEvent

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

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

func (*SDKService) AddDeviceProfile

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

AddDeviceProfile provides a mock function with given fields: profile

func (*SDKService) AddProvisionWatcher

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

AddProvisionWatcher provides a mock function with given fields: watcher

func (*SDKService) AddRoute

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

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

func (*SDKService) AsyncReadings

func (_m *SDKService) AsyncReadings() bool

AsyncReadings provides a mock function with given fields:

func (*SDKService) DeviceCommand

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

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

func (*SDKService) DeviceDiscovery

func (_m *SDKService) DeviceDiscovery() bool

DeviceDiscovery provides a mock function with given fields:

func (*SDKService) DeviceProfiles

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

DeviceProfiles provides a mock function with given fields:

func (*SDKService) DeviceResource

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

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

func (*SDKService) Devices

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

Devices provides a mock function with given fields:

func (*SDKService) GetDeviceByName

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

GetDeviceByName provides a mock function with given fields: name

func (*SDKService) GetLoggingClient

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

GetLoggingClient provides a mock function with given fields:

func (*SDKService) GetProfileByName

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

GetProfileByName provides a mock function with given fields: name

func (*SDKService) GetProvisionWatcherByName

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

GetProvisionWatcherByName provides a mock function with given fields: name

func (*SDKService) GetSecretProvider

func (_m *SDKService) GetSecretProvider() interfaces.SecretProvider

GetSecretProvider provides a mock function with given fields:

func (*SDKService) ListenForCustomConfigChanges

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

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

func (*SDKService) LoadCustomConfig

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

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

func (*SDKService) Name

func (_m *SDKService) Name() string

Name provides a mock function with given fields:

func (*SDKService) ProvisionWatchers

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

ProvisionWatchers provides a mock function with given fields:

func (*SDKService) RemoveDeviceAutoEvent

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

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

func (*SDKService) RemoveDeviceByName

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

RemoveDeviceByName provides a mock function with given fields: name

func (*SDKService) RemoveDeviceProfileByName

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

RemoveDeviceProfileByName provides a mock function with given fields: name

func (*SDKService) RemoveProvisionWatcher

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

RemoveProvisionWatcher provides a mock function with given fields: name

func (*SDKService) Stop

func (_m *SDKService) Stop(force bool)

Stop provides a mock function with given fields: force

func (*SDKService) UpdateDevice

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

UpdateDevice provides a mock function with given fields: device

func (*SDKService) UpdateDeviceOperatingState

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

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

func (*SDKService) UpdateDeviceProfile

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

UpdateDeviceProfile provides a mock function with given fields: profile

func (*SDKService) UpdateProvisionWatcher

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

UpdateProvisionWatcher provides a mock function with given fields: watcher

func (*SDKService) Version

func (_m *SDKService) 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