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