Documentation
¶
Index ¶
Constants ¶
View Source
const ( ReplyNone = 0 ReplyOK = 1 ReplyFail = -1 )
View Source
const ( ResourceSystem = "system" ResourceAll = "resource.all" )
View Source
const ( ResourceDeviceTemplate = "dp" ResourceAlgo = "algo" ResourceAlgoTask = "algoTask" ResourceTimRules = "timRules" ResourceDeviceRules = "deviceRules" ResourceAdminStates = "adminStates" )
存储在影子中的key
View Source
const BindDeviceKey = "device.bind"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminStates ¶
type AlgoDevInfo ¶
type AlgoInfo ¶
type AlgoInfo struct {
Description string `json:"description"`
Device AlgoDevInfo `json:"device"`
Channel string `json:"channel"`
Algorithm AlgoTaskInfoAlgo `json:"algorithm"`
Command string `json:"command" v:"required"`
ContainerName string `json:"containerName"` // 运行容器的名称
EnvironmentParam []map[string]interface{} `json:"environmentParam"` // 运行容器需要的参数
DockerAdvancedParam string `json:"dockerAdvancedParam"` // 运行容器需要的高级参数
Push bool `json:"pushToCorex"` // 是否将数据直接推送到云端
AlgorithmOutput AlgoOutput `json:"algorithmOutput"`
UpdatedAt int64 `json:"updatedAt"`
CreatedAt int64 `json:"createdAt"`
}
type AlgoModelConfig ¶
type AlgoModelInfo ¶
type AlgoModelInfo struct {
Description string `json:"description"`
Category int64 `json:"category"`
FileSize string `json:"fileSize"`
Configuration AlgoModelConfig `json:"configuration"`
CreatedAt int64 `json:"createdAt"`
}
type AlgoOutput ¶
type AlgoOutput struct {
Communication string `json:"communication"`
CommunicationParameter map[string]interface{} `json:"communicationParameter"`
Store string `json:"store"`
StoreParameter map[string]interface{} `json:"storeParameter"`
StreamOutPort int `json:"streamOutPort"`
StreamOutAddress string `json:"streamOutAddress"`
Attach Attach `json:"attach"`
}
type AlgoTask ¶
type AlgoTask struct {
Id string `json:"id"` // 设备算法任务云端ID
LocalId string `json:"localId"` // 设备算法任务本地ID
Local bool `json:"local"`
Name string `json:"name" v:"required"`
Status string `json:"status"`
ErrMsg string `json:"errMsg"`
StartAt int64 `json:"startAt"`
Runtime int64 `json:"runtime"`
Info AlgoInfo `json:"info"`
}
type AlgoTaskInfoAlgo ¶
Click to show internal directories.
Click to hide internal directories.