Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrIntegrationNotFound = errors.New("integration not found") ErrIntegrationExists = errors.New("integration already exists") ErrUnknownIntegration = errors.New("unknown integration provider") ErrNoCredentials = errors.New("no connection string or credentials " + "configured for the tenant") ErrNoDeviceConnectionString = errors.New("device has no connection string") ErrDeviceAlreadyExists = errors.New("device already exists") ErrDeviceNotFound = errors.New("device not found") ErrDeviceStateConflict = errors.New("conflict when updating the device state") ErrCannotRemoveIntegration = errors.New("cannot remove integration in use by devices") )
Functions ¶
This section is empty.
Types ¶
type App ¶
type App interface { WithIoTCore(client iotcore.Client) App WithIoTHub(client iothub.Client) App WithWebhooksTimeout(timeout uint) App HealthCheck(context.Context) error GetDeviceIntegrations(context.Context, string) ([]model.Integration, error) GetIntegrations(context.Context) ([]model.Integration, error) GetIntegrationById(context.Context, uuid.UUID) (*model.Integration, error) CreateIntegration(context.Context, model.Integration) (*model.Integration, error) SetDeviceStatus(context.Context, string, model.Status) error SetIntegrationCredentials(context.Context, uuid.UUID, model.Credentials) error RemoveIntegration(context.Context, uuid.UUID) error GetDevice(context.Context, string) (*model.Device, error) GetDeviceStateIntegration(context.Context, string, uuid.UUID) (*model.DeviceState, error) SetDeviceStateIntegration(context.Context, string, uuid.UUID, *model.DeviceState) (*model.DeviceState, error) GetDeviceStateIoTHub(context.Context, string, *model.Integration) (*model.DeviceState, error) SetDeviceStateIoTHub(context.Context, string, *model.Integration, *model.DeviceState) (*model.DeviceState, error) GetDeviceStateIoTCore(context.Context, string, *model.Integration) (*model.DeviceState, error) SetDeviceStateIoTCore(context.Context, string, *model.Integration, *model.DeviceState) (*model.DeviceState, error) ProvisionDevice(context.Context, model.DeviceEvent) error DecommissionDevice(context.Context, string) error SyncDevices(context.Context, int, bool) error GetEvents(ctx context.Context, filter model.EventsFilter) ([]model.Event, error) VerifyDeviceTwin(ctx context.Context, req model.PreauthRequest) error }
App interface describes app objects
Click to show internal directories.
Click to hide internal directories.