Documentation ¶
Index ¶
- type DeviceAdder
- func (_m *DeviceAdder) AddDevice(d models.Device, commands []models.Command) (string, error)
- func (_m *DeviceAdder) GetDeviceProfileById(id string) (models.DeviceProfile, error)
- func (_m *DeviceAdder) GetDeviceProfileByName(n string) (models.DeviceProfile, error)
- func (_m *DeviceAdder) GetDeviceServiceById(id string) (models.DeviceService, error)
- func (_m *DeviceAdder) GetDeviceServiceByName(n string) (models.DeviceService, error)
- type DeviceLoader
- type DeviceProfileDeleter
- func (_m *DeviceProfileDeleter) DeleteDeviceProfileById(id string) error
- func (_m *DeviceProfileDeleter) GetAllDevices() ([]models.Device, error)
- func (_m *DeviceProfileDeleter) GetDeviceProfileById(id string) (models.DeviceProfile, error)
- func (_m *DeviceProfileDeleter) GetDeviceProfileByName(n string) (models.DeviceProfile, error)
- func (_m *DeviceProfileDeleter) GetDevicesByProfileId(pid string) ([]models.Device, error)
- func (_m *DeviceProfileDeleter) GetProvisionWatchersByProfileId(id string) ([]models.ProvisionWatcher, error)
- type DeviceProfileUpdater
- func (_m *DeviceProfileUpdater) GetAllDeviceProfiles() ([]models.DeviceProfile, error)
- func (_m *DeviceProfileUpdater) GetAllDevices() ([]models.Device, error)
- func (_m *DeviceProfileUpdater) GetDeviceProfileById(id string) (models.DeviceProfile, error)
- func (_m *DeviceProfileUpdater) GetDeviceProfileByName(n string) (models.DeviceProfile, error)
- func (_m *DeviceProfileUpdater) GetDevicesByProfileId(pid string) ([]models.Device, error)
- func (_m *DeviceProfileUpdater) GetProvisionWatchersByProfileId(id string) ([]models.ProvisionWatcher, error)
- func (_m *DeviceProfileUpdater) UpdateDeviceProfile(dp models.DeviceProfile) error
- type DeviceServiceLoader
- type DeviceUpdater
- func (_m *DeviceUpdater) GetDeviceById(id string) (models.Device, error)
- func (_m *DeviceUpdater) GetDeviceByName(name string) (models.Device, error)
- func (_m *DeviceUpdater) GetDeviceProfileById(id string) (models.DeviceProfile, error)
- func (_m *DeviceUpdater) GetDeviceProfileByName(n string) (models.DeviceProfile, error)
- func (_m *DeviceUpdater) GetDeviceServiceById(id string) (models.DeviceService, error)
- func (_m *DeviceUpdater) GetDeviceServiceByName(n string) (models.DeviceService, error)
- func (_m *DeviceUpdater) UpdateDevice(d models.Device) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceAdder ¶
DeviceAdder is an autogenerated mock type for the DeviceAdder type
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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