mocks

package
v1.2.2-dev.93 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 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 DBClient

type DBClient struct {
	mock.Mock
}

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) AddDevice

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

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

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

func (_m *DBClient) DeleteAddressableById(id string) error

DeleteAddressableById provides a mock function with given fields: id

func (*DBClient) DeleteDeviceById

func (_m *DBClient) DeleteDeviceById(id string) error

DeleteDeviceById provides a mock function with given fields: id

func (*DBClient) DeleteDeviceProfileById

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

DeleteDeviceProfileById provides a mock function with given fields: id

func (*DBClient) DeleteDeviceReportById

func (_m *DBClient) DeleteDeviceReportById(id string) error

DeleteDeviceReportById provides a mock function with given fields: id

func (*DBClient) DeleteDeviceServiceById

func (_m *DBClient) DeleteDeviceServiceById(id string) error

DeleteDeviceServiceById provides a mock function with given fields: id

func (*DBClient) DeleteProvisionWatcherById

func (_m *DBClient) DeleteProvisionWatcherById(id string) error

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

func (_m *DBClient) GetAllCommands() ([]models.Command, error)

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

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

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

func (_m *DBClient) GetCommandById(id string) (models.Command, error)

GetCommandById provides a mock function with given fields: id

func (*DBClient) GetCommandByNameAndDeviceId

func (_m *DBClient) GetCommandByNameAndDeviceId(cname string, did string) (models.Command, error)

GetCommandByNameAndDeviceId provides a mock function with given fields: cname, did

func (*DBClient) GetCommandsByDeviceId

func (_m *DBClient) GetCommandsByDeviceId(id string) ([]models.Command, error)

GetCommandsByDeviceId provides a mock function with given fields: id

func (*DBClient) GetCommandsByName

func (_m *DBClient) GetCommandsByName(id string) ([]models.Command, error)

GetCommandsByName provides a mock function with given fields: id

func (*DBClient) GetDeviceById

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

GetDeviceById provides a mock function with given fields: id

func (*DBClient) GetDeviceByName

func (_m *DBClient) GetDeviceByName(n string) (models.Device, error)

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

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

GetDevicesByProfileId provides a mock function with given fields: pid

func (*DBClient) GetDevicesByServiceId

func (_m *DBClient) GetDevicesByServiceId(sid string) ([]models.Device, error)

GetDevicesByServiceId provides a mock function with given fields: sid

func (*DBClient) GetDevicesWithLabel

func (_m *DBClient) GetDevicesWithLabel(l string) ([]models.Device, error)

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

func (_m *DBClient) ScrubMetadata() error

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

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

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

Jump to

Keyboard shortcuts

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