v2

package
v0.0.65 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenReqDefForAddDevice

func GenReqDefForAddDevice() *def.HttpRequestDef

func GenReqDefForBatchAssociateNaToNodes

func GenReqDefForBatchAssociateNaToNodes() *def.HttpRequestDef

func GenReqDefForBatchConfirmConfigsNew

func GenReqDefForBatchConfirmConfigsNew() *def.HttpRequestDef

func GenReqDefForBatchImportConfigs

func GenReqDefForBatchImportConfigs() *def.HttpRequestDef

func GenReqDefForBatchListEdgeAppVersions

func GenReqDefForBatchListEdgeAppVersions() *def.HttpRequestDef

func GenReqDefForBatchListEdgeApps

func GenReqDefForBatchListEdgeApps() *def.HttpRequestDef

func GenReqDefForBatchListModules

func GenReqDefForBatchListModules() *def.HttpRequestDef

func GenReqDefForBatchUpdateConfigs

func GenReqDefForBatchUpdateConfigs() *def.HttpRequestDef

func GenReqDefForCreateAccessCode

func GenReqDefForCreateAccessCode() *def.HttpRequestDef

func GenReqDefForCreateEdgeApp

func GenReqDefForCreateEdgeApp() *def.HttpRequestDef

func GenReqDefForCreateEdgeApplicationVersion

func GenReqDefForCreateEdgeApplicationVersion() *def.HttpRequestDef

func GenReqDefForCreateEdgeNode

func GenReqDefForCreateEdgeNode() *def.HttpRequestDef

func GenReqDefForCreateExternalEntity

func GenReqDefForCreateExternalEntity() *def.HttpRequestDef

func GenReqDefForCreateInstallCmd

func GenReqDefForCreateInstallCmd() *def.HttpRequestDef

func GenReqDefForCreateModule

func GenReqDefForCreateModule() *def.HttpRequestDef

func GenReqDefForDeleteDevice

func GenReqDefForDeleteDevice() *def.HttpRequestDef

func GenReqDefForDeleteEdgeApp

func GenReqDefForDeleteEdgeApp() *def.HttpRequestDef

func GenReqDefForDeleteEdgeApplicationVersion

func GenReqDefForDeleteEdgeApplicationVersion() *def.HttpRequestDef

func GenReqDefForDeleteEdgeNode

func GenReqDefForDeleteEdgeNode() *def.HttpRequestDef

func GenReqDefForDeleteExternalEntity

func GenReqDefForDeleteExternalEntity() *def.HttpRequestDef

func GenReqDefForDeleteIaConfig

func GenReqDefForDeleteIaConfig() *def.HttpRequestDef

func GenReqDefForDeleteModule

func GenReqDefForDeleteModule() *def.HttpRequestDef

func GenReqDefForDeleteNa

func GenReqDefForDeleteNa() *def.HttpRequestDef

func GenReqDefForListDevices

func GenReqDefForListDevices() *def.HttpRequestDef

func GenReqDefForListEdgeNodes

func GenReqDefForListEdgeNodes() *def.HttpRequestDef

func GenReqDefForListExternalEntity

func GenReqDefForListExternalEntity() *def.HttpRequestDef

func GenReqDefForListIaConfigs

func GenReqDefForListIaConfigs() *def.HttpRequestDef

func GenReqDefForListNaAuthorizedNodes

func GenReqDefForListNaAuthorizedNodes() *def.HttpRequestDef

func GenReqDefForListNas

func GenReqDefForListNas() *def.HttpRequestDef

func GenReqDefForListRoutes

func GenReqDefForListRoutes() *def.HttpRequestDef

func GenReqDefForShowEdgeApp

func GenReqDefForShowEdgeApp() *def.HttpRequestDef

func GenReqDefForShowEdgeApplicationVersion

func GenReqDefForShowEdgeApplicationVersion() *def.HttpRequestDef

func GenReqDefForShowEdgeNode

func GenReqDefForShowEdgeNode() *def.HttpRequestDef

func GenReqDefForShowExternalEntity

func GenReqDefForShowExternalEntity() *def.HttpRequestDef

func GenReqDefForShowIaConfig

func GenReqDefForShowIaConfig() *def.HttpRequestDef

func GenReqDefForShowModule

func GenReqDefForShowModule() *def.HttpRequestDef

func GenReqDefForShowNa

func GenReqDefForShowNa() *def.HttpRequestDef

func GenReqDefForShowProductConfig

func GenReqDefForShowProductConfig() *def.HttpRequestDef

func GenReqDefForShowProtocolMappings

func GenReqDefForShowProtocolMappings() *def.HttpRequestDef

func GenReqDefForUpdateDevice

func GenReqDefForUpdateDevice() *def.HttpRequestDef

func GenReqDefForUpdateEdgeApplicationVersion

func GenReqDefForUpdateEdgeApplicationVersion() *def.HttpRequestDef

func GenReqDefForUpdateEdgeApplicationVersionState

func GenReqDefForUpdateEdgeApplicationVersionState() *def.HttpRequestDef

func GenReqDefForUpdateExternalEntity

func GenReqDefForUpdateExternalEntity() *def.HttpRequestDef

func GenReqDefForUpdateIaConfig

func GenReqDefForUpdateIaConfig() *def.HttpRequestDef

func GenReqDefForUpdateModule

func GenReqDefForUpdateModule() *def.HttpRequestDef

func GenReqDefForUpdateNa

func GenReqDefForUpdateNa() *def.HttpRequestDef

func GenReqDefForUpdateRoutes

func GenReqDefForUpdateRoutes() *def.HttpRequestDef

func GenReqDefForUploadProtocolMappings

func GenReqDefForUploadProtocolMappings() *def.HttpRequestDef

func IoTEdgeClientBuilder

func IoTEdgeClientBuilder() *http_client.HcHttpClientBuilder

Types

type IoTEdgeClient

type IoTEdgeClient struct {
	HcClient *http_client.HcHttpClient
}

func NewIoTEdgeClient

func NewIoTEdgeClient(hcClient *http_client.HcHttpClient) *IoTEdgeClient

func (*IoTEdgeClient) AddDevice

func (c *IoTEdgeClient) AddDevice(request *model.AddDeviceRequest) (*model.AddDeviceResponse, error)

添加设备

func (*IoTEdgeClient) BatchAssociateNaToNodes

批量授权北向NA信息到边缘节点。 已授权的边缘节点上的南向IA应用,可以通过部署在边缘节点上的api网关访问北向NA提供的接口。

func (*IoTEdgeClient) BatchConfirmConfigsNew

南向3rdIA对下发的配置项进行批量确认

func (*IoTEdgeClient) BatchImportConfigs

批量导入南向3rdIA配置项

func (*IoTEdgeClient) BatchListEdgeAppVersions

查询应用版本列表

func (*IoTEdgeClient) BatchListEdgeApps

查询应用列表

func (*IoTEdgeClient) BatchListModules

用户通过Console接口查询指定边缘节点上边缘模块列表

func (*IoTEdgeClient) BatchUpdateConfigs

批量修改产品关联的设备,传入product_id修改该产品下所有设备,传入device_id列表,根据device_id修改,两者互斥。

func (*IoTEdgeClient) CreateAccessCode

生成modbus协议设备接入码

func (*IoTEdgeClient) CreateEdgeApp

创建应用

func (*IoTEdgeClient) CreateEdgeApplicationVersion

创建应用版本

func (*IoTEdgeClient) CreateEdgeNode

创建边缘节点

func (*IoTEdgeClient) CreateExternalEntity

用户通过在指定边缘节点上设置外部实体的接入信息

func (*IoTEdgeClient) CreateInstallCmd

生成边缘节点安装命令,命令有效时间30分钟,超过后需要重新生成

func (*IoTEdgeClient) CreateModule

用户通过Console接口在指定边缘节点上创建边缘模块

func (*IoTEdgeClient) DeleteDevice

删除设备

func (*IoTEdgeClient) DeleteEdgeApp

删除应用

func (*IoTEdgeClient) DeleteEdgeApplicationVersion

删除应用版本

func (*IoTEdgeClient) DeleteEdgeNode

删除指定边缘节点

func (*IoTEdgeClient) DeleteExternalEntity

删除节点下外部实体

func (*IoTEdgeClient) DeleteIaConfig

删除南向3rdIA配置项

func (*IoTEdgeClient) DeleteModule

用户通过过Console接口在指定边缘节点上删除边缘模块

func (*IoTEdgeClient) DeleteNa

func (c *IoTEdgeClient) DeleteNa(request *model.DeleteNaRequest) (*model.DeleteNaResponse, error)

删除北向NA信息,如果有边缘节点已分配该NA信息,会通知到该边缘节点。

func (*IoTEdgeClient) ListDevices

查询设备列表

func (*IoTEdgeClient) ListEdgeNodes

查询边缘节点列表

func (*IoTEdgeClient) ListExternalEntity

用户在指定边缘节点上查询外部实体列表

func (*IoTEdgeClient) ListIaConfigs

查询南向3rdIA配置项列表

func (*IoTEdgeClient) ListNaAuthorizedNodes

查询该北向NA信息的已分配节点

func (*IoTEdgeClient) ListNas

func (c *IoTEdgeClient) ListNas(request *model.ListNasRequest) (*model.ListNasResponse, error)

查询北向NA信息列表

func (*IoTEdgeClient) ListRoutes

func (c *IoTEdgeClient) ListRoutes(request *model.ListRoutesRequest) (*model.ListRoutesResponse, error)

用户在指定边缘节点上查询边缘路由列表

func (*IoTEdgeClient) ShowEdgeApp

查询应用

func (*IoTEdgeClient) ShowEdgeApplicationVersion

查询应用版本详情

func (*IoTEdgeClient) ShowEdgeNode

查询边缘节点详情

func (*IoTEdgeClient) ShowExternalEntity

查询指定节点下指定外部实体的详情

func (*IoTEdgeClient) ShowIaConfig

查询南向3rdIA配置项详情

func (*IoTEdgeClient) ShowModule

func (c *IoTEdgeClient) ShowModule(request *model.ShowModuleRequest) (*model.ShowModuleResponse, error)

用户通过Console接口查询指定边缘节点上指定边缘模块

func (*IoTEdgeClient) ShowNa

func (c *IoTEdgeClient) ShowNa(request *model.ShowNaRequest) (*model.ShowNaResponse, error)

查询北向NA信息详情

func (*IoTEdgeClient) ShowProductConfig

获取协议配置

func (*IoTEdgeClient) ShowProtocolMappings

获取协议映射文件

func (*IoTEdgeClient) UpdateDevice

修改设备

func (*IoTEdgeClient) UpdateEdgeApplicationVersion

修改应用版本

func (*IoTEdgeClient) UpdateEdgeApplicationVersionState

更新应用版本状态。

func (*IoTEdgeClient) UpdateExternalEntity

用户通过在指定边缘节点上修改指定外部实体的接入信息

func (*IoTEdgeClient) UpdateIaConfig

创建&更新南向3rdIA配置项信息

func (*IoTEdgeClient) UpdateModule

用户通过Console接口查询指定边缘节点上指定边缘模块

func (*IoTEdgeClient) UpdateNa

func (c *IoTEdgeClient) UpdateNa(request *model.UpdateNaRequest) (*model.UpdateNaResponse, error)

创建&更新北向NA信息,当更新北向NA信息时,会通知到已分配该北向NA的所有边缘节点。

func (*IoTEdgeClient) UpdateRoutes

用户通过在指定边缘节点上设置边缘路由

func (*IoTEdgeClient) UploadProtocolMappings

上传协议映射文件

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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