Documentation ¶
Index ¶
- type DeviceClient
- func (_m *DeviceClient) Add(dev *models.Device, ctx context.Context) (string, error)
- func (_m *DeviceClient) CheckForDevice(token string, ctx context.Context) (models.Device, error)
- func (_m *DeviceClient) Delete(id string, ctx context.Context) error
- func (_m *DeviceClient) DeleteByName(name string, ctx context.Context) error
- func (_m *DeviceClient) Device(id string, ctx context.Context) (models.Device, error)
- func (_m *DeviceClient) DeviceForName(name string, ctx context.Context) (models.Device, error)
- func (_m *DeviceClient) Devices(ctx context.Context) ([]models.Device, error)
- func (_m *DeviceClient) DevicesByLabel(label string, ctx context.Context) ([]models.Device, error)
- func (_m *DeviceClient) DevicesForAddressable(addressableid string, ctx context.Context) ([]models.Device, error)
- func (_m *DeviceClient) DevicesForAddressableByName(addressableName string, ctx context.Context) ([]models.Device, error)
- func (_m *DeviceClient) DevicesForProfile(profileid string, ctx context.Context) ([]models.Device, error)
- func (_m *DeviceClient) DevicesForProfileByName(profileName string, ctx context.Context) ([]models.Device, error)
- func (_m *DeviceClient) DevicesForService(serviceid string, ctx context.Context) ([]models.Device, error)
- func (_m *DeviceClient) DevicesForServiceByName(serviceName string, ctx context.Context) ([]models.Device, error)
- func (_m *DeviceClient) Update(dev models.Device, ctx context.Context) error
- func (_m *DeviceClient) UpdateAdminState(id string, adminState string, ctx context.Context) error
- func (_m *DeviceClient) UpdateAdminStateByName(name string, adminState string, ctx context.Context) error
- func (_m *DeviceClient) UpdateLastConnected(id string, time int64, ctx context.Context) error
- func (_m *DeviceClient) UpdateLastConnectedByName(name string, time int64, ctx context.Context) error
- func (_m *DeviceClient) UpdateLastReported(id string, time int64, ctx context.Context) error
- func (_m *DeviceClient) UpdateLastReportedByName(name string, time int64, ctx context.Context) error
- func (_m *DeviceClient) UpdateOpState(id string, opState string, ctx context.Context) error
- func (_m *DeviceClient) UpdateOpStateByName(name string, opState string, ctx context.Context) 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) CheckForDevice ¶
CheckForDevice provides a mock function with given fields: token, ctx
func (*DeviceClient) Delete ¶
func (_m *DeviceClient) Delete(id string, ctx context.Context) error
Delete provides a mock function with given fields: id, ctx
func (*DeviceClient) DeleteByName ¶
func (_m *DeviceClient) DeleteByName(name string, ctx context.Context) error
DeleteByName provides a mock function with given fields: name, ctx
func (*DeviceClient) DeviceForName ¶
DeviceForName provides a mock function with given fields: name, ctx
func (*DeviceClient) DevicesByLabel ¶
DevicesByLabel provides a mock function with given fields: label, ctx
func (*DeviceClient) DevicesForAddressable ¶
func (_m *DeviceClient) DevicesForAddressable(addressableid string, ctx context.Context) ([]models.Device, error)
DevicesForAddressable provides a mock function with given fields: addressableid, ctx
func (*DeviceClient) DevicesForAddressableByName ¶
func (_m *DeviceClient) DevicesForAddressableByName(addressableName string, ctx context.Context) ([]models.Device, error)
DevicesForAddressableByName provides a mock function with given fields: addressableName, ctx
func (*DeviceClient) DevicesForProfile ¶
func (_m *DeviceClient) DevicesForProfile(profileid string, ctx context.Context) ([]models.Device, error)
DevicesForProfile provides a mock function with given fields: profileid, ctx
func (*DeviceClient) DevicesForProfileByName ¶
func (_m *DeviceClient) DevicesForProfileByName(profileName string, ctx context.Context) ([]models.Device, error)
DevicesForProfileByName provides a mock function with given fields: profileName, ctx
func (*DeviceClient) DevicesForService ¶
func (_m *DeviceClient) DevicesForService(serviceid string, ctx context.Context) ([]models.Device, error)
DevicesForService provides a mock function with given fields: serviceid, ctx
func (*DeviceClient) DevicesForServiceByName ¶
func (_m *DeviceClient) DevicesForServiceByName(serviceName string, ctx context.Context) ([]models.Device, error)
DevicesForServiceByName provides a mock function with given fields: serviceName, ctx
func (*DeviceClient) UpdateAdminState ¶
UpdateAdminState provides a mock function with given fields: id, adminState, ctx
func (*DeviceClient) UpdateAdminStateByName ¶
func (_m *DeviceClient) UpdateAdminStateByName(name string, adminState string, ctx context.Context) error
UpdateAdminStateByName provides a mock function with given fields: name, adminState, ctx
func (*DeviceClient) UpdateLastConnected ¶
UpdateLastConnected provides a mock function with given fields: id, time, ctx
func (*DeviceClient) UpdateLastConnectedByName ¶
func (_m *DeviceClient) UpdateLastConnectedByName(name string, time int64, ctx context.Context) error
UpdateLastConnectedByName provides a mock function with given fields: name, time, ctx
func (*DeviceClient) UpdateLastReported ¶
UpdateLastReported provides a mock function with given fields: id, time, ctx
func (*DeviceClient) UpdateLastReportedByName ¶
func (_m *DeviceClient) UpdateLastReportedByName(name string, time int64, ctx context.Context) error
UpdateLastReportedByName provides a mock function with given fields: name, time, ctx
func (*DeviceClient) UpdateOpState ¶
UpdateOpState provides a mock function with given fields: id, opState, ctx
func (*DeviceClient) UpdateOpStateByName ¶
UpdateOpStateByName provides a mock function with given fields: name, opState, ctx