application

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDevice

func AddDevice(d models.Device, ctx context.Context, dic *di.Container) (id string, edgeXerr errors.EdgeX)

The AddDevice function accepts the new device model from the controller function and then invokes AddDevice function of infrastructure layer to add new device

func AddDeviceProfile

func AddDeviceProfile(d models.DeviceProfile, ctx context.Context, dic *di.Container) (id string, err errors.EdgeX)

The AddDeviceProfile function accepts the new device profile model from the controller functions and invokes addDeviceProfile function in the infrastructure layer

func AddDeviceService

func AddDeviceService(d models.DeviceService, ctx context.Context, dic *di.Container) (id string, err errors.EdgeX)

The AddDeviceService function accepts the new device service model from the controller function and then invokes AddDeviceService function of infrastructure layer to add new device service

func AllDeviceProfiles

func AllDeviceProfiles(offset int, limit int, labels []string, dic *di.Container) (deviceProfiles []dtos.DeviceProfile, err errors.EdgeX)

AllDeviceProfiles query the device profiles with offset, and limit

func AllDeviceServices

func AllDeviceServices(offset int, limit int, labels []string, ctx context.Context, dic *di.Container) (deviceServices []dtos.DeviceService, err errors.EdgeX)

AllDeviceServices query the device services with labels, offset, and limit

func AllDevices

func AllDevices(offset int, limit int, labels []string, dic *di.Container) (devices []dtos.Device, err errors.EdgeX)

AllDevices query the devices with offset, limit, and labels

func DeleteDeviceById

func DeleteDeviceById(id string, dic *di.Container) errors.EdgeX

DeleteDeviceById deletes the device by Id

func DeleteDeviceByName

func DeleteDeviceByName(name string, dic *di.Container) errors.EdgeX

DeleteDeviceByName deletes the device by name

func DeleteDeviceProfileById

func DeleteDeviceProfileById(id string, ctx context.Context, dic *di.Container) errors.EdgeX

DeleteDeviceProfileById delete the device profile by Id

func DeleteDeviceProfileByName

func DeleteDeviceProfileByName(name string, ctx context.Context, dic *di.Container) errors.EdgeX

DeleteDeviceProfileByName delete the device profile by name

func DeleteDeviceServiceById

func DeleteDeviceServiceById(id string, ctx context.Context, dic *di.Container) errors.EdgeX

DeleteDeviceServiceById delete the device service by Id

func DeleteDeviceServiceByName

func DeleteDeviceServiceByName(name string, ctx context.Context, dic *di.Container) errors.EdgeX

DeleteDeviceServiceByName delete the device service by name

func DeviceByName

func DeviceByName(name string, dic *di.Container) (device dtos.Device, err errors.EdgeX)

DeviceByName query the device by name

func DeviceIdExists

func DeviceIdExists(id string, dic *di.Container) (exists bool, edgeXerr errors.EdgeX)

DeviceIdExists checks the device existence by id

func DeviceNameExists

func DeviceNameExists(name string, dic *di.Container) (exists bool, err errors.EdgeX)

DeviceNameExists checks the device existence by name

func DeviceProfileByName

func DeviceProfileByName(name string, ctx context.Context, dic *di.Container) (deviceProfile dtos.DeviceProfile, err errors.EdgeX)

DeviceProfileByName query the device profile by name

func DeviceServiceByName

func DeviceServiceByName(name string, ctx context.Context, dic *di.Container) (deviceService dtos.DeviceService, err errors.EdgeX)

DeviceServiceByName query the device service by name

func DevicesByServiceName

func DevicesByServiceName(offset int, limit int, name string, ctx context.Context, dic *di.Container) (devices []dtos.Device, err errors.EdgeX)

DevicesByServiceName query devices with offset, limit and name

func PatchDevice

func PatchDevice(dto dtos.UpdateDevice, ctx context.Context, dic *di.Container) errors.EdgeX

PatchDevice executes the PATCH operation with the device DTO to replace the old data

func PatchDeviceService

func PatchDeviceService(dto dtos.UpdateDeviceService, ctx context.Context, dic *di.Container) errors.EdgeX

PatchDeviceService executes the PATCH operation with the device service DTO to replace the old data

func UpdateDeviceProfile

func UpdateDeviceProfile(d models.DeviceProfile, ctx context.Context, dic *di.Container) (err errors.EdgeX)

The UpdateDeviceProfile function accepts the device profile model from the controller functions and invokes updateDeviceProfile function in the infrastructure layer

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL