Documentation ¶
Index ¶
- type DBClient
- func (_m *DBClient) AddAddressable(a models.Addressable) (string, error)
- func (_m *DBClient) AddDevice(d models.Device, commands []models.Command) (string, error)
- func (_m *DBClient) AddDeviceProfile(d models.DeviceProfile) (string, error)
- func (_m *DBClient) AddDeviceReport(dr models.DeviceReport) (string, error)
- func (_m *DBClient) AddDeviceService(ds models.DeviceService) (string, error)
- func (_m *DBClient) AddProvisionWatcher(pw models.ProvisionWatcher) (string, error)
- func (_m *DBClient) CloseSession()
- func (_m *DBClient) DeleteAddressableById(id string) error
- func (_m *DBClient) DeleteDeviceById(id string) error
- func (_m *DBClient) DeleteDeviceProfileById(id string) error
- func (_m *DBClient) DeleteDeviceReportById(id string) error
- func (_m *DBClient) DeleteDeviceServiceById(id string) error
- func (_m *DBClient) DeleteProvisionWatcherById(id string) error
- func (_m *DBClient) GetAddressableById(id string) (models.Addressable, error)
- func (_m *DBClient) GetAddressableByName(n string) (models.Addressable, error)
- func (_m *DBClient) GetAddressables() ([]models.Addressable, error)
- func (_m *DBClient) GetAddressablesByAddress(add string) ([]models.Addressable, error)
- func (_m *DBClient) GetAddressablesByPort(p int) ([]models.Addressable, error)
- func (_m *DBClient) GetAddressablesByPublisher(p string) ([]models.Addressable, error)
- func (_m *DBClient) GetAddressablesByTopic(t string) ([]models.Addressable, error)
- func (_m *DBClient) GetAllCommands() ([]models.Command, error)
- func (_m *DBClient) GetAllDeviceProfiles() ([]models.DeviceProfile, error)
- func (_m *DBClient) GetAllDeviceReports() ([]models.DeviceReport, error)
- func (_m *DBClient) GetAllDeviceServices() ([]models.DeviceService, error)
- func (_m *DBClient) GetAllDevices() ([]models.Device, error)
- func (_m *DBClient) GetAllProvisionWatchers() ([]models.ProvisionWatcher, error)
- func (_m *DBClient) GetCommandById(id string) (models.Command, error)
- func (_m *DBClient) GetCommandByNameAndDeviceId(cname string, did string) (models.Command, error)
- func (_m *DBClient) GetCommandsByDeviceId(id string) ([]models.Command, error)
- func (_m *DBClient) GetCommandsByName(id string) ([]models.Command, error)
- func (_m *DBClient) GetDeviceById(id string) (models.Device, error)
- func (_m *DBClient) GetDeviceByName(n string) (models.Device, error)
- func (_m *DBClient) GetDeviceProfileById(id string) (models.DeviceProfile, error)
- func (_m *DBClient) GetDeviceProfileByName(n string) (models.DeviceProfile, error)
- func (_m *DBClient) GetDeviceProfilesByManufacturer(man string) ([]models.DeviceProfile, error)
- func (_m *DBClient) GetDeviceProfilesByManufacturerModel(man string, mod string) ([]models.DeviceProfile, error)
- func (_m *DBClient) GetDeviceProfilesByModel(m string) ([]models.DeviceProfile, error)
- func (_m *DBClient) GetDeviceProfilesWithLabel(l string) ([]models.DeviceProfile, error)
- func (_m *DBClient) GetDeviceReportByDeviceName(n string) ([]models.DeviceReport, error)
- func (_m *DBClient) GetDeviceReportById(id string) (models.DeviceReport, error)
- func (_m *DBClient) GetDeviceReportByName(n string) (models.DeviceReport, error)
- func (_m *DBClient) GetDeviceReportsByAction(n string) ([]models.DeviceReport, error)
- func (_m *DBClient) GetDeviceServiceById(id string) (models.DeviceService, error)
- func (_m *DBClient) GetDeviceServiceByName(n string) (models.DeviceService, error)
- func (_m *DBClient) GetDeviceServicesByAddressableId(id string) ([]models.DeviceService, error)
- func (_m *DBClient) GetDeviceServicesWithLabel(l string) ([]models.DeviceService, error)
- func (_m *DBClient) GetDevicesByProfileId(pid string) ([]models.Device, error)
- func (_m *DBClient) GetDevicesByServiceId(sid string) ([]models.Device, error)
- func (_m *DBClient) GetDevicesWithLabel(l string) ([]models.Device, error)
- func (_m *DBClient) GetProvisionWatcherById(id string) (models.ProvisionWatcher, error)
- func (_m *DBClient) GetProvisionWatcherByName(n string) (models.ProvisionWatcher, error)
- func (_m *DBClient) GetProvisionWatchersByIdentifier(k string, v string) ([]models.ProvisionWatcher, error)
- func (_m *DBClient) GetProvisionWatchersByProfileId(id string) ([]models.ProvisionWatcher, error)
- func (_m *DBClient) GetProvisionWatchersByServiceId(id string) ([]models.ProvisionWatcher, error)
- func (_m *DBClient) ScrubMetadata() error
- func (_m *DBClient) UpdateAddressable(a models.Addressable) error
- func (_m *DBClient) UpdateDevice(d models.Device) error
- func (_m *DBClient) UpdateDeviceProfile(dp models.DeviceProfile) error
- func (_m *DBClient) UpdateDeviceReport(dr models.DeviceReport) error
- func (_m *DBClient) UpdateDeviceService(ds models.DeviceService) error
- func (_m *DBClient) UpdateProvisionWatcher(pw models.ProvisionWatcher) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBClient ¶
DBClient is an autogenerated mock type for the DBClient type
func (*DBClient) AddAddressable ¶
func (_m *DBClient) AddAddressable(a models.Addressable) (string, error)
AddAddressable provides a mock function with given fields: a
func (*DBClient) AddDeviceProfile ¶
func (_m *DBClient) AddDeviceProfile(d models.DeviceProfile) (string, error)
AddDeviceProfile provides a mock function with given fields: d
func (*DBClient) AddDeviceReport ¶
func (_m *DBClient) AddDeviceReport(dr models.DeviceReport) (string, error)
AddDeviceReport provides a mock function with given fields: dr
func (*DBClient) AddDeviceService ¶
func (_m *DBClient) AddDeviceService(ds models.DeviceService) (string, error)
AddDeviceService provides a mock function with given fields: ds
func (*DBClient) AddProvisionWatcher ¶
func (_m *DBClient) AddProvisionWatcher(pw models.ProvisionWatcher) (string, error)
AddProvisionWatcher provides a mock function with given fields: pw
func (*DBClient) CloseSession ¶
func (_m *DBClient) CloseSession()
CloseSession provides a mock function with given fields:
func (*DBClient) DeleteAddressableById ¶
DeleteAddressableById provides a mock function with given fields: id
func (*DBClient) DeleteDeviceById ¶
DeleteDeviceById provides a mock function with given fields: id
func (*DBClient) DeleteDeviceProfileById ¶
DeleteDeviceProfileById provides a mock function with given fields: id
func (*DBClient) DeleteDeviceReportById ¶
DeleteDeviceReportById provides a mock function with given fields: id
func (*DBClient) DeleteDeviceServiceById ¶
DeleteDeviceServiceById provides a mock function with given fields: id
func (*DBClient) DeleteProvisionWatcherById ¶
DeleteProvisionWatcherById provides a mock function with given fields: id
func (*DBClient) GetAddressableById ¶
func (_m *DBClient) GetAddressableById(id string) (models.Addressable, error)
GetAddressableById provides a mock function with given fields: id
func (*DBClient) GetAddressableByName ¶
func (_m *DBClient) GetAddressableByName(n string) (models.Addressable, error)
GetAddressableByName provides a mock function with given fields: n
func (*DBClient) GetAddressables ¶
func (_m *DBClient) GetAddressables() ([]models.Addressable, error)
GetAddressables provides a mock function with given fields:
func (*DBClient) GetAddressablesByAddress ¶
func (_m *DBClient) GetAddressablesByAddress(add string) ([]models.Addressable, error)
GetAddressablesByAddress provides a mock function with given fields: add
func (*DBClient) GetAddressablesByPort ¶
func (_m *DBClient) GetAddressablesByPort(p int) ([]models.Addressable, error)
GetAddressablesByPort provides a mock function with given fields: p
func (*DBClient) GetAddressablesByPublisher ¶
func (_m *DBClient) GetAddressablesByPublisher(p string) ([]models.Addressable, error)
GetAddressablesByPublisher provides a mock function with given fields: p
func (*DBClient) GetAddressablesByTopic ¶
func (_m *DBClient) GetAddressablesByTopic(t string) ([]models.Addressable, error)
GetAddressablesByTopic provides a mock function with given fields: t
func (*DBClient) GetAllCommands ¶
GetAllCommands provides a mock function with given fields:
func (*DBClient) GetAllDeviceProfiles ¶
func (_m *DBClient) GetAllDeviceProfiles() ([]models.DeviceProfile, error)
GetAllDeviceProfiles provides a mock function with given fields:
func (*DBClient) GetAllDeviceReports ¶
func (_m *DBClient) GetAllDeviceReports() ([]models.DeviceReport, error)
GetAllDeviceReports provides a mock function with given fields:
func (*DBClient) GetAllDeviceServices ¶
func (_m *DBClient) GetAllDeviceServices() ([]models.DeviceService, error)
GetAllDeviceServices provides a mock function with given fields:
func (*DBClient) GetAllDevices ¶
GetAllDevices provides a mock function with given fields:
func (*DBClient) GetAllProvisionWatchers ¶
func (_m *DBClient) GetAllProvisionWatchers() ([]models.ProvisionWatcher, error)
GetAllProvisionWatchers provides a mock function with given fields:
func (*DBClient) GetCommandById ¶
GetCommandById provides a mock function with given fields: id
func (*DBClient) GetCommandByNameAndDeviceId ¶
GetCommandByNameAndDeviceId provides a mock function with given fields: cname, did
func (*DBClient) GetCommandsByDeviceId ¶
GetCommandsByDeviceId provides a mock function with given fields: id
func (*DBClient) GetCommandsByName ¶
GetCommandsByName provides a mock function with given fields: id
func (*DBClient) GetDeviceById ¶
GetDeviceById provides a mock function with given fields: id
func (*DBClient) GetDeviceByName ¶
GetDeviceByName provides a mock function with given fields: n
func (*DBClient) GetDeviceProfileById ¶
func (_m *DBClient) GetDeviceProfileById(id string) (models.DeviceProfile, error)
GetDeviceProfileById provides a mock function with given fields: id
func (*DBClient) GetDeviceProfileByName ¶
func (_m *DBClient) GetDeviceProfileByName(n string) (models.DeviceProfile, error)
GetDeviceProfileByName provides a mock function with given fields: n
func (*DBClient) GetDeviceProfilesByManufacturer ¶
func (_m *DBClient) GetDeviceProfilesByManufacturer(man string) ([]models.DeviceProfile, error)
GetDeviceProfilesByManufacturer provides a mock function with given fields: man
func (*DBClient) GetDeviceProfilesByManufacturerModel ¶
func (_m *DBClient) GetDeviceProfilesByManufacturerModel(man string, mod string) ([]models.DeviceProfile, error)
GetDeviceProfilesByManufacturerModel provides a mock function with given fields: man, mod
func (*DBClient) GetDeviceProfilesByModel ¶
func (_m *DBClient) GetDeviceProfilesByModel(m string) ([]models.DeviceProfile, error)
GetDeviceProfilesByModel provides a mock function with given fields: m
func (*DBClient) GetDeviceProfilesWithLabel ¶
func (_m *DBClient) GetDeviceProfilesWithLabel(l string) ([]models.DeviceProfile, error)
GetDeviceProfilesWithLabel provides a mock function with given fields: l
func (*DBClient) GetDeviceReportByDeviceName ¶
func (_m *DBClient) GetDeviceReportByDeviceName(n string) ([]models.DeviceReport, error)
GetDeviceReportByDeviceName provides a mock function with given fields: n
func (*DBClient) GetDeviceReportById ¶
func (_m *DBClient) GetDeviceReportById(id string) (models.DeviceReport, error)
GetDeviceReportById provides a mock function with given fields: id
func (*DBClient) GetDeviceReportByName ¶
func (_m *DBClient) GetDeviceReportByName(n string) (models.DeviceReport, error)
GetDeviceReportByName provides a mock function with given fields: n
func (*DBClient) GetDeviceReportsByAction ¶
func (_m *DBClient) GetDeviceReportsByAction(n string) ([]models.DeviceReport, error)
GetDeviceReportsByAction provides a mock function with given fields: n
func (*DBClient) GetDeviceServiceById ¶
func (_m *DBClient) GetDeviceServiceById(id string) (models.DeviceService, error)
GetDeviceServiceById provides a mock function with given fields: id
func (*DBClient) GetDeviceServiceByName ¶
func (_m *DBClient) GetDeviceServiceByName(n string) (models.DeviceService, error)
GetDeviceServiceByName provides a mock function with given fields: n
func (*DBClient) GetDeviceServicesByAddressableId ¶
func (_m *DBClient) GetDeviceServicesByAddressableId(id string) ([]models.DeviceService, error)
GetDeviceServicesByAddressableId provides a mock function with given fields: id
func (*DBClient) GetDeviceServicesWithLabel ¶
func (_m *DBClient) GetDeviceServicesWithLabel(l string) ([]models.DeviceService, error)
GetDeviceServicesWithLabel provides a mock function with given fields: l
func (*DBClient) GetDevicesByProfileId ¶
GetDevicesByProfileId provides a mock function with given fields: pid
func (*DBClient) GetDevicesByServiceId ¶
GetDevicesByServiceId provides a mock function with given fields: sid
func (*DBClient) GetDevicesWithLabel ¶
GetDevicesWithLabel provides a mock function with given fields: l
func (*DBClient) GetProvisionWatcherById ¶
func (_m *DBClient) GetProvisionWatcherById(id string) (models.ProvisionWatcher, error)
GetProvisionWatcherById provides a mock function with given fields: id
func (*DBClient) GetProvisionWatcherByName ¶
func (_m *DBClient) GetProvisionWatcherByName(n string) (models.ProvisionWatcher, error)
GetProvisionWatcherByName provides a mock function with given fields: n
func (*DBClient) GetProvisionWatchersByIdentifier ¶
func (_m *DBClient) GetProvisionWatchersByIdentifier(k string, v string) ([]models.ProvisionWatcher, error)
GetProvisionWatchersByIdentifier provides a mock function with given fields: k, v
func (*DBClient) GetProvisionWatchersByProfileId ¶
func (_m *DBClient) GetProvisionWatchersByProfileId(id string) ([]models.ProvisionWatcher, error)
GetProvisionWatchersByProfileId provides a mock function with given fields: id
func (*DBClient) GetProvisionWatchersByServiceId ¶
func (_m *DBClient) GetProvisionWatchersByServiceId(id string) ([]models.ProvisionWatcher, error)
GetProvisionWatchersByServiceId provides a mock function with given fields: id
func (*DBClient) ScrubMetadata ¶
ScrubMetadata provides a mock function with given fields:
func (*DBClient) UpdateAddressable ¶
func (_m *DBClient) UpdateAddressable(a models.Addressable) error
UpdateAddressable provides a mock function with given fields: a
func (*DBClient) UpdateDevice ¶
UpdateDevice provides a mock function with given fields: d
func (*DBClient) UpdateDeviceProfile ¶
func (_m *DBClient) UpdateDeviceProfile(dp models.DeviceProfile) error
UpdateDeviceProfile provides a mock function with given fields: dp
func (*DBClient) UpdateDeviceReport ¶
func (_m *DBClient) UpdateDeviceReport(dr models.DeviceReport) error
UpdateDeviceReport provides a mock function with given fields: dr
func (*DBClient) UpdateDeviceService ¶
func (_m *DBClient) UpdateDeviceService(ds models.DeviceService) error
UpdateDeviceService provides a mock function with given fields: ds
func (*DBClient) UpdateProvisionWatcher ¶
func (_m *DBClient) UpdateProvisionWatcher(pw models.ProvisionWatcher) error
UpdateProvisionWatcher provides a mock function with given fields: pw