storage

package
v0.0.0-...-623860c Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceManagementStorage

type DeviceManagementStorage interface {
	// Device model interfaces
	CreateDeviceModel(req *models.DeviceModelReq, picURL string, deviceModelId, creationTimestamp string) (*models.DeviceModel, error)
	ImportDeviceModels(dmImportList *models.DeviceModelImport2ExportList) (*models.DeviceModelList, error)
	ExportDeviceModels(keyword string) (*models.DeviceModelImport2ExportList, error)
	UpdateDeviceModelPicture(modelId, picURL string) (*models.DeviceModel, error)
	DeleteDeviceModel(modelId string) error
	ListDeviceModels(keyword string, filter bool) (*models.DeviceModelList, error)
	GetDeviceModel(modelId string) (*models.DeviceModel, error)
	UpdateDeviceModel(modelId string, dm *models.DeviceModel) (*models.DeviceModel, error)
	CreateDeviceModelFeature(modelId string, created bool, dmFeature *models.DeviceModelFeature) (*models.DeviceModel, error)
	GetDeviceModelFeature(modelId, featureId string) (*models.DeviceModelFeature, error)
	UpdateDeviceModelFeature(modelId, featureId string, dmFeature *models.DeviceModelFeature) (*models.DeviceModel, error)
	DeleteDeviceModelFeature(modelId, featureId string) error
	UpdateDeviceModelPlugin(modelId string, plugin *models.DeviceModelPlugin) (*models.DeviceModel, error)
	DeleteDeviceModelPlugin(modelId, pluginName string) error
	// Device model interfaces on edge
	ImportDeviceModelsOnEdge(dmList *models.DeviceModelList) error
	// Device interfaces
	ListDevices(modelId, keyword string, filter bool) (*models.DeviceList, error)
	CreateDevice(modelId string, req *models.DeviceReq, existedDeviceId, updateTimestamp string) (*models.Device, error)
	DeleteDevice(modelId, deviceId string) error
	GetDevice(modelId, deviceId string) (*models.Device, error)
	UpdateDevice(modelId, deviceId string, device *models.Device) (*models.Device, error)
	UpdateDeviceProperty(modelId, deviceId, propertyId string, property *models.DevicePropertyItem) (*models.Device, error)
	UpdateDeviceCommand(modelId, deviceId, commandId string, command *models.DeviceCommandItem) (*models.Device, error)
	ListDeviceSubDevices(modelId, deviceId, keyword string) (*models.DeviceList, error)
	AddDeviceSubDevices(modelId, deviceId string, subDevices *models.DeviceSubDeviceList) error
	DeleteDeviceSubDevices(modelId, deviceId string, subDevices *models.DeviceSubDeviceList) error
	ExportDevices(modelId, keyword string) (*models.DeviceImport2ExportList, error)
	ImportDevices(modelId string, deviceImportList *models.DeviceImport2ExportList) (*models.DeviceList, error)
	// Device interfaces on edge
	ImportDevicesOnEdge(deviceList *models.DeviceList) error
}

DeviceManagementStorage contains all methods for device management database implement

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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