Documentation ¶
Overview ¶
Code generated by mockery v1.0.0
Index ¶
- type DeviceClient
- func (_m *DeviceClient) Add(dev *models.Device) (string, error)
- func (_m *DeviceClient) CheckForDevice(token string) (models.Device, error)
- func (_m *DeviceClient) Delete(id string) error
- func (_m *DeviceClient) DeleteByName(name string) error
- func (_m *DeviceClient) Device(id string) (models.Device, error)
- func (_m *DeviceClient) DeviceForName(name string) (models.Device, error)
- func (_m *DeviceClient) Devices() ([]models.Device, error)
- func (_m *DeviceClient) DevicesByLabel(label string) ([]models.Device, error)
- func (_m *DeviceClient) DevicesForAddressable(addressableid string) ([]models.Device, error)
- func (_m *DeviceClient) DevicesForAddressableByName(addressableName string) ([]models.Device, error)
- func (_m *DeviceClient) DevicesForProfile(profileid string) ([]models.Device, error)
- func (_m *DeviceClient) DevicesForProfileByName(profileName string) ([]models.Device, error)
- func (_m *DeviceClient) DevicesForService(serviceid string) ([]models.Device, error)
- func (_m *DeviceClient) DevicesForServiceByName(serviceName string) ([]models.Device, error)
- func (_m *DeviceClient) Update(dev models.Device) error
- func (_m *DeviceClient) UpdateAdminState(id string, adminState string) error
- func (_m *DeviceClient) UpdateAdminStateByName(name string, adminState string) error
- func (_m *DeviceClient) UpdateLastConnected(id string, time int64) error
- func (_m *DeviceClient) UpdateLastConnectedByName(name string, time int64) error
- func (_m *DeviceClient) UpdateLastReported(id string, time int64) error
- func (_m *DeviceClient) UpdateLastReportedByName(name string, time int64) error
- func (_m *DeviceClient) UpdateOpState(id string, opState string) error
- func (_m *DeviceClient) UpdateOpStateByName(name string, opState string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceClient ¶
DeviceClient is an autogenerated mock type for the DeviceClient type
func (*DeviceClient) Add ¶
func (_m *DeviceClient) Add(dev *models.Device) (string, error)
Add provides a mock function with given fields: dev
func (*DeviceClient) CheckForDevice ¶
func (_m *DeviceClient) CheckForDevice(token string) (models.Device, error)
CheckForDevice provides a mock function with given fields: token
func (*DeviceClient) Delete ¶
func (_m *DeviceClient) Delete(id string) error
Delete provides a mock function with given fields: id
func (*DeviceClient) DeleteByName ¶
func (_m *DeviceClient) DeleteByName(name string) error
DeleteByName provides a mock function with given fields: name
func (*DeviceClient) Device ¶
func (_m *DeviceClient) Device(id string) (models.Device, error)
Device provides a mock function with given fields: id
func (*DeviceClient) DeviceForName ¶
func (_m *DeviceClient) DeviceForName(name string) (models.Device, error)
DeviceForName provides a mock function with given fields: name
func (*DeviceClient) Devices ¶
func (_m *DeviceClient) Devices() ([]models.Device, error)
Devices provides a mock function with given fields:
func (*DeviceClient) DevicesByLabel ¶
func (_m *DeviceClient) DevicesByLabel(label string) ([]models.Device, error)
DevicesByLabel provides a mock function with given fields: label
func (*DeviceClient) DevicesForAddressable ¶
func (_m *DeviceClient) DevicesForAddressable(addressableid string) ([]models.Device, error)
DevicesForAddressable provides a mock function with given fields: addressableid
func (*DeviceClient) DevicesForAddressableByName ¶
func (_m *DeviceClient) DevicesForAddressableByName(addressableName string) ([]models.Device, error)
DevicesForAddressableByName provides a mock function with given fields: addressableName
func (*DeviceClient) DevicesForProfile ¶
func (_m *DeviceClient) DevicesForProfile(profileid string) ([]models.Device, error)
DevicesForProfile provides a mock function with given fields: profileid
func (*DeviceClient) DevicesForProfileByName ¶
func (_m *DeviceClient) DevicesForProfileByName(profileName string) ([]models.Device, error)
DevicesForProfileByName provides a mock function with given fields: profileName
func (*DeviceClient) DevicesForService ¶
func (_m *DeviceClient) DevicesForService(serviceid string) ([]models.Device, error)
DevicesForService provides a mock function with given fields: serviceid
func (*DeviceClient) DevicesForServiceByName ¶
func (_m *DeviceClient) DevicesForServiceByName(serviceName string) ([]models.Device, error)
DevicesForServiceByName provides a mock function with given fields: serviceName
func (*DeviceClient) Update ¶
func (_m *DeviceClient) Update(dev models.Device) error
Update provides a mock function with given fields: dev
func (*DeviceClient) UpdateAdminState ¶
func (_m *DeviceClient) UpdateAdminState(id string, adminState string) error
UpdateAdminState provides a mock function with given fields: id, adminState
func (*DeviceClient) UpdateAdminStateByName ¶
func (_m *DeviceClient) UpdateAdminStateByName(name string, adminState string) error
UpdateAdminStateByName provides a mock function with given fields: name, adminState
func (*DeviceClient) UpdateLastConnected ¶
func (_m *DeviceClient) UpdateLastConnected(id string, time int64) error
UpdateLastConnected provides a mock function with given fields: id, time
func (*DeviceClient) UpdateLastConnectedByName ¶
func (_m *DeviceClient) UpdateLastConnectedByName(name string, time int64) error
UpdateLastConnectedByName provides a mock function with given fields: name, time
func (*DeviceClient) UpdateLastReported ¶
func (_m *DeviceClient) UpdateLastReported(id string, time int64) error
UpdateLastReported provides a mock function with given fields: id, time
func (*DeviceClient) UpdateLastReportedByName ¶
func (_m *DeviceClient) UpdateLastReportedByName(name string, time int64) error
UpdateLastReportedByName provides a mock function with given fields: name, time
func (*DeviceClient) UpdateOpState ¶
func (_m *DeviceClient) UpdateOpState(id string, opState string) error
UpdateOpState provides a mock function with given fields: id, opState
func (*DeviceClient) UpdateOpStateByName ¶
func (_m *DeviceClient) UpdateOpStateByName(name string, opState string) error
UpdateOpStateByName provides a mock function with given fields: name, opState