Documentation ¶
Index ¶
- func AddDevice(d models.Device, ctx context.Context, dic *di.Container) (id string, edgeXerr errors.EdgeX)
- func AddDeviceProfile(d models.DeviceProfile, ctx context.Context, dic *di.Container) (id string, err errors.EdgeX)
- func AddDeviceService(d models.DeviceService, ctx context.Context, dic *di.Container) (id string, err errors.EdgeX)
- func AllDeviceByServiceName(offset int, limit int, name string, ctx context.Context, dic *di.Container) (devices []dtos.Device, err errors.EdgeX)
- func DeleteDeviceById(id string, dic *di.Container) errors.EdgeX
- func DeleteDeviceByName(name string, dic *di.Container) errors.EdgeX
- func DeleteDeviceProfileById(id string, ctx context.Context, dic *di.Container) errors.EdgeX
- func DeleteDeviceProfileByName(name string, ctx context.Context, dic *di.Container) errors.EdgeX
- func DeleteDeviceServiceById(id string, ctx context.Context, dic *di.Container) errors.EdgeX
- func DeleteDeviceServiceByName(name string, ctx context.Context, dic *di.Container) errors.EdgeX
- func DeviceIdExists(id string, dic *di.Container) (exists bool, edgeXerr errors.EdgeX)
- func DeviceNameExists(name string, dic *di.Container) (exists bool, err errors.EdgeX)
- func GetDeviceProfileByName(name string, ctx context.Context, dic *di.Container) (deviceProfile dtos.DeviceProfile, err errors.EdgeX)
- func GetDeviceProfiles(offset int, limit int, labels []string, dic *di.Container) (deviceProfiles []dtos.DeviceProfile, err errors.EdgeX)
- func GetDeviceServiceByName(name string, ctx context.Context, dic *di.Container) (deviceService dtos.DeviceService, err errors.EdgeX)
- func GetDeviceServices(offset int, limit int, labels []string, ctx context.Context, dic *di.Container) (deviceServices []dtos.DeviceService, err errors.EdgeX)
- func PatchDeviceService(dto dtos.UpdateDeviceService, ctx context.Context, dic *di.Container) errors.EdgeX
- func UpdateDeviceProfile(d models.DeviceProfile, ctx context.Context, dic *di.Container) (err errors.EdgeX)
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 AllDeviceByServiceName ¶
func AllDeviceByServiceName(offset int, limit int, name string, ctx context.Context, dic *di.Container) (devices []dtos.Device, err errors.EdgeX)
AllDeviceByServiceName query devices with offset, limit and name
func DeleteDeviceById ¶
DeleteDeviceById deletes the device by Id
func DeleteDeviceByName ¶
DeleteDeviceByName deletes the device by name
func DeleteDeviceProfileById ¶
DeleteDeviceProfileById delete the device profile by Id
func DeleteDeviceProfileByName ¶
DeleteDeviceProfileByName delete the device profile by name
func DeleteDeviceServiceById ¶
DeleteDeviceServiceById delete the device service by Id
func DeleteDeviceServiceByName ¶
DeleteDeviceServiceByName delete the device service by name
func DeviceIdExists ¶
DeviceIdExists checks the device existence by id
func DeviceNameExists ¶
DeviceNameExists checks the device existence by name
func GetDeviceProfileByName ¶
func GetDeviceProfileByName(name string, ctx context.Context, dic *di.Container) (deviceProfile dtos.DeviceProfile, err errors.EdgeX)
GetDeviceProfileByName query the device profile by name
func GetDeviceProfiles ¶
func GetDeviceProfiles(offset int, limit int, labels []string, dic *di.Container) (deviceProfiles []dtos.DeviceProfile, err errors.EdgeX)
GetDeviceProfiles query the device profiles with offset, and limit
func GetDeviceServiceByName ¶
func GetDeviceServiceByName(name string, ctx context.Context, dic *di.Container) (deviceService dtos.DeviceService, err errors.EdgeX)
GetDeviceServiceByName query the device service by name
func GetDeviceServices ¶
func GetDeviceServices(offset int, limit int, labels []string, ctx context.Context, dic *di.Container) (deviceServices []dtos.DeviceService, err errors.EdgeX)
GetDeviceServices query the device services with labels, offset, and limit
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.