Versions in this module Expand all Collapse all v0 v0.1.58 Dec 5, 2020 Changes in this version + type AddressableClient interface + Add func(ctx context.Context, addr *models.Addressable) (string, error) + Addressable func(ctx context.Context, id string) (models.Addressable, error) + AddressableForName func(ctx context.Context, name string) (models.Addressable, error) + Delete func(ctx context.Context, id string) error + Update func(ctx context.Context, addr models.Addressable) error + func NewAddressableClient(urlClient interfaces.URLClient) AddressableClient + type CommandClient interface + Add func(ctx context.Context, com *models.Command) (string, error) + Command func(ctx context.Context, id string) (models.Command, error) + Commands func(ctx context.Context) ([]models.Command, error) + CommandsForDeviceId func(ctx context.Context, id string) ([]models.Command, error) + CommandsForName func(ctx context.Context, name string) ([]models.Command, error) + Delete func(ctx context.Context, id string) error + Update func(ctx context.Context, com models.Command) error + func NewCommandClient(urlClient interfaces.URLClient) CommandClient + type DeviceClient interface + Add func(ctx context.Context, dev *models.Device) (string, error) + CheckForDevice func(ctx context.Context, token string) (models.Device, error) + Delete func(ctx context.Context, id string) error + DeleteByName func(ctx context.Context, name string) error + Device func(ctx context.Context, id string) (models.Device, error) + DeviceForName func(ctx context.Context, name string) (models.Device, error) + Devices func(ctx context.Context) ([]models.Device, error) + DevicesByLabel func(ctx context.Context, label string) ([]models.Device, error) + DevicesForProfile func(ctx context.Context, profileid string) ([]models.Device, error) + DevicesForProfileByName func(ctx context.Context, profileName string) ([]models.Device, error) + DevicesForService func(ctx context.Context, serviceid string) ([]models.Device, error) + DevicesForServiceByName func(ctx context.Context, serviceName string) ([]models.Device, error) + Update func(ctx context.Context, dev models.Device) error + UpdateAdminState func(ctx context.Context, id string, adminState string) error + UpdateAdminStateByName func(ctx context.Context, name string, adminState string) error + UpdateLastConnected func(ctx context.Context, id string, time int64) error + UpdateLastConnectedByName func(ctx context.Context, name string, time int64) error + UpdateLastReported func(ctx context.Context, id string, time int64) error + UpdateLastReportedByName func(ctx context.Context, name string, time int64) error + UpdateOpState func(ctx context.Context, id string, opState string) error + UpdateOpStateByName func(ctx context.Context, name string, opState string) error + func NewDeviceClient(urlClient interfaces.URLClient) DeviceClient + type DeviceProfileClient interface + Add func(ctx context.Context, dp *models.DeviceProfile) (string, error) + Delete func(ctx context.Context, id string) error + DeleteByName func(ctx context.Context, name string) error + DeviceProfile func(ctx context.Context, id string) (models.DeviceProfile, error) + DeviceProfileForName func(ctx context.Context, name string) (models.DeviceProfile, error) + DeviceProfiles func(ctx context.Context) ([]models.DeviceProfile, error) + Update func(ctx context.Context, dp models.DeviceProfile) error + Upload func(ctx context.Context, yamlString string) (string, error) + UploadFile func(ctx context.Context, yamlFilePath string) (string, error) + func NewDeviceProfileClient(urlClient interfaces.URLClient) DeviceProfileClient + type DeviceServiceClient interface + Add func(ctx context.Context, ds *models.DeviceService) (string, error) + DeviceServiceForName func(ctx context.Context, name string) (models.DeviceService, error) + UpdateLastConnected func(ctx context.Context, id string, time int64) error + UpdateLastReported func(ctx context.Context, id string, time int64) error + func NewDeviceServiceClient(urlClient interfaces.URLClient) DeviceServiceClient + type ProvisionWatcherClient interface + Add func(ctx context.Context, dev *models.ProvisionWatcher) (string, error) + Delete func(ctx context.Context, id string) error + ProvisionWatcher func(ctx context.Context, id string) (models.ProvisionWatcher, error) + ProvisionWatcherForName func(ctx context.Context, name string) (models.ProvisionWatcher, error) + ProvisionWatchers func(ctx context.Context) ([]models.ProvisionWatcher, error) + ProvisionWatchersForProfile func(ctx context.Context, profileID string) ([]models.ProvisionWatcher, error) + ProvisionWatchersForProfileByName func(ctx context.Context, profileName string) ([]models.ProvisionWatcher, error) + ProvisionWatchersForService func(ctx context.Context, serviceId string) ([]models.ProvisionWatcher, error) + ProvisionWatchersForServiceByName func(ctx context.Context, serviceName string) ([]models.ProvisionWatcher, error) + Update func(ctx context.Context, dev models.ProvisionWatcher) error + func NewProvisionWatcherClient(urlClient interfaces.URLClient) ProvisionWatcherClient