mocks

package
v1.2.2-dev.8 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceAdder

type DeviceAdder struct {
	mock.Mock
}

DeviceAdder is an autogenerated mock type for the DeviceAdder type

func (*DeviceAdder) AddDevice

func (_m *DeviceAdder) AddDevice(d models.Device, commands []models.Command) (string, error)

AddDevice provides a mock function with given fields: d, commands

func (*DeviceAdder) GetDeviceProfileById

func (_m *DeviceAdder) GetDeviceProfileById(id string) (models.DeviceProfile, error)

GetDeviceProfileById provides a mock function with given fields: id

func (*DeviceAdder) GetDeviceProfileByName

func (_m *DeviceAdder) GetDeviceProfileByName(n string) (models.DeviceProfile, error)

GetDeviceProfileByName provides a mock function with given fields: n

func (*DeviceAdder) GetDeviceServiceById

func (_m *DeviceAdder) GetDeviceServiceById(id string) (models.DeviceService, error)

GetDeviceServiceById provides a mock function with given fields: id

func (*DeviceAdder) GetDeviceServiceByName

func (_m *DeviceAdder) GetDeviceServiceByName(n string) (models.DeviceService, error)

GetDeviceServiceByName provides a mock function with given fields: n

type DeviceLoader

type DeviceLoader struct {
	mock.Mock
}

DeviceLoader is an autogenerated mock type for the DeviceLoader type

func (*DeviceLoader) GetAllDevices

func (_m *DeviceLoader) GetAllDevices() ([]models.Device, error)

GetAllDevices provides a mock function with given fields:

func (*DeviceLoader) GetDevicesByProfileId

func (_m *DeviceLoader) GetDevicesByProfileId(pid string) ([]models.Device, error)

GetDevicesByProfileId provides a mock function with given fields: pid

type DeviceProfileDeleter

type DeviceProfileDeleter struct {
	mock.Mock
}

DeviceProfileDeleter is an autogenerated mock type for the DeviceProfileDeleter type

func (*DeviceProfileDeleter) DeleteDeviceProfileById

func (_m *DeviceProfileDeleter) DeleteDeviceProfileById(id string) error

DeleteDeviceProfileById provides a mock function with given fields: id

func (*DeviceProfileDeleter) GetAllDevices

func (_m *DeviceProfileDeleter) GetAllDevices() ([]models.Device, error)

GetAllDevices provides a mock function with given fields:

func (*DeviceProfileDeleter) GetDeviceProfileById

func (_m *DeviceProfileDeleter) GetDeviceProfileById(id string) (models.DeviceProfile, error)

GetDeviceProfileById provides a mock function with given fields: id

func (*DeviceProfileDeleter) GetDeviceProfileByName

func (_m *DeviceProfileDeleter) GetDeviceProfileByName(n string) (models.DeviceProfile, error)

GetDeviceProfileByName provides a mock function with given fields: n

func (*DeviceProfileDeleter) GetDevicesByProfileId

func (_m *DeviceProfileDeleter) GetDevicesByProfileId(pid string) ([]models.Device, error)

GetDevicesByProfileId provides a mock function with given fields: pid

func (*DeviceProfileDeleter) GetProvisionWatchersByProfileId

func (_m *DeviceProfileDeleter) GetProvisionWatchersByProfileId(id string) ([]models.ProvisionWatcher, error)

GetProvisionWatchersByProfileId provides a mock function with given fields: id

type DeviceProfileUpdater

type DeviceProfileUpdater struct {
	mock.Mock
}

DeviceProfileUpdater is an autogenerated mock type for the DeviceProfileUpdater type

func (*DeviceProfileUpdater) GetAllDeviceProfiles

func (_m *DeviceProfileUpdater) GetAllDeviceProfiles() ([]models.DeviceProfile, error)

GetAllDeviceProfiles provides a mock function with given fields:

func (*DeviceProfileUpdater) GetAllDevices

func (_m *DeviceProfileUpdater) GetAllDevices() ([]models.Device, error)

GetAllDevices provides a mock function with given fields:

func (*DeviceProfileUpdater) GetDeviceProfileById

func (_m *DeviceProfileUpdater) GetDeviceProfileById(id string) (models.DeviceProfile, error)

GetDeviceProfileById provides a mock function with given fields: id

func (*DeviceProfileUpdater) GetDeviceProfileByName

func (_m *DeviceProfileUpdater) GetDeviceProfileByName(n string) (models.DeviceProfile, error)

GetDeviceProfileByName provides a mock function with given fields: n

func (*DeviceProfileUpdater) GetDevicesByProfileId

func (_m *DeviceProfileUpdater) GetDevicesByProfileId(pid string) ([]models.Device, error)

GetDevicesByProfileId provides a mock function with given fields: pid

func (*DeviceProfileUpdater) GetProvisionWatchersByProfileId

func (_m *DeviceProfileUpdater) GetProvisionWatchersByProfileId(id string) ([]models.ProvisionWatcher, error)

GetProvisionWatchersByProfileId provides a mock function with given fields: id

func (*DeviceProfileUpdater) UpdateDeviceProfile

func (_m *DeviceProfileUpdater) UpdateDeviceProfile(dp models.DeviceProfile) error

UpdateDeviceProfile provides a mock function with given fields: dp

type DeviceServiceLoader

type DeviceServiceLoader struct {
	mock.Mock
}

DeviceServiceLoader is an autogenerated mock type for the DeviceServiceLoader type

func (*DeviceServiceLoader) GetDeviceServiceById

func (_m *DeviceServiceLoader) GetDeviceServiceById(id string) (models.DeviceService, error)

GetDeviceServiceById provides a mock function with given fields: id

func (*DeviceServiceLoader) GetDeviceServiceByName

func (_m *DeviceServiceLoader) GetDeviceServiceByName(n string) (models.DeviceService, error)

GetDeviceServiceByName provides a mock function with given fields: n

type DeviceUpdater

type DeviceUpdater struct {
	mock.Mock
}

DeviceUpdater is an autogenerated mock type for the DeviceUpdater type

func (*DeviceUpdater) GetDeviceById

func (_m *DeviceUpdater) GetDeviceById(id string) (models.Device, error)

GetDeviceById provides a mock function with given fields: id

func (*DeviceUpdater) GetDeviceByName

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

GetDeviceByName provides a mock function with given fields: name

func (*DeviceUpdater) GetDeviceProfileById

func (_m *DeviceUpdater) GetDeviceProfileById(id string) (models.DeviceProfile, error)

GetDeviceProfileById provides a mock function with given fields: id

func (*DeviceUpdater) GetDeviceProfileByName

func (_m *DeviceUpdater) GetDeviceProfileByName(n string) (models.DeviceProfile, error)

GetDeviceProfileByName provides a mock function with given fields: n

func (*DeviceUpdater) GetDeviceServiceById

func (_m *DeviceUpdater) GetDeviceServiceById(id string) (models.DeviceService, error)

GetDeviceServiceById provides a mock function with given fields: id

func (*DeviceUpdater) GetDeviceServiceByName

func (_m *DeviceUpdater) GetDeviceServiceByName(n string) (models.DeviceService, error)

GetDeviceServiceByName provides a mock function with given fields: n

func (*DeviceUpdater) UpdateDevice

func (_m *DeviceUpdater) UpdateDevice(d models.Device) error

UpdateDevice provides a mock function with given fields: d

Jump to

Keyboard shortcuts

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