v1

package
v0.0.84 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 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 GenReqDefForBatchAddDeleteTags

func GenReqDefForBatchAddDeleteTags() *def.HttpRequestDef

func GenReqDefForCreateApp

func GenReqDefForCreateApp() *def.HttpRequestDef

func GenReqDefForCreateAppVersions

func GenReqDefForCreateAppVersions() *def.HttpRequestDef

func GenReqDefForCreateConfigMap

func GenReqDefForCreateConfigMap() *def.HttpRequestDef

func GenReqDefForCreateDeployments

func GenReqDefForCreateDeployments() *def.HttpRequestDef

func GenReqDefForCreateDevice

func GenReqDefForCreateDevice() *def.HttpRequestDef

func GenReqDefForCreateDeviceTemplate

func GenReqDefForCreateDeviceTemplate() *def.HttpRequestDef

func GenReqDefForCreateEdgeNode

func GenReqDefForCreateEdgeNode() *def.HttpRequestDef

func GenReqDefForCreateEdgeNodeCerts

func GenReqDefForCreateEdgeNodeCerts() *def.HttpRequestDef

func GenReqDefForCreateEndpoint

func GenReqDefForCreateEndpoint() *def.HttpRequestDef

func GenReqDefForCreateRule

func GenReqDefForCreateRule() *def.HttpRequestDef

func GenReqDefForCreateSecret

func GenReqDefForCreateSecret() *def.HttpRequestDef

func GenReqDefForCreateService

func GenReqDefForCreateService() *def.HttpRequestDef

func GenReqDefForCreateTag

func GenReqDefForCreateTag() *def.HttpRequestDef

func GenReqDefForDeleteApp

func GenReqDefForDeleteApp() *def.HttpRequestDef

func GenReqDefForDeleteAppVersion

func GenReqDefForDeleteAppVersion() *def.HttpRequestDef

func GenReqDefForDeleteConfigMap

func GenReqDefForDeleteConfigMap() *def.HttpRequestDef

func GenReqDefForDeleteDeployment

func GenReqDefForDeleteDeployment() *def.HttpRequestDef

func GenReqDefForDeleteDevice

func GenReqDefForDeleteDevice() *def.HttpRequestDef

func GenReqDefForDeleteDeviceTemplate

func GenReqDefForDeleteDeviceTemplate() *def.HttpRequestDef

func GenReqDefForDeleteEdgeNode

func GenReqDefForDeleteEdgeNode() *def.HttpRequestDef

func GenReqDefForDeleteEdgeNodeCerts

func GenReqDefForDeleteEdgeNodeCerts() *def.HttpRequestDef

func GenReqDefForDeleteEndPoint

func GenReqDefForDeleteEndPoint() *def.HttpRequestDef

func GenReqDefForDeleteResourceTag

func GenReqDefForDeleteResourceTag() *def.HttpRequestDef

func GenReqDefForDeleteRule

func GenReqDefForDeleteRule() *def.HttpRequestDef

func GenReqDefForDeleteSecret

func GenReqDefForDeleteSecret() *def.HttpRequestDef

func GenReqDefForDeleteService

func GenReqDefForDeleteService() *def.HttpRequestDef

func GenReqDefForEnableDisableEdgeNodes

func GenReqDefForEnableDisableEdgeNodes() *def.HttpRequestDef

func GenReqDefForListAppVersions

func GenReqDefForListAppVersions() *def.HttpRequestDef

func GenReqDefForListApps

func GenReqDefForListApps() *def.HttpRequestDef

func GenReqDefForListConfigMaps

func GenReqDefForListConfigMaps() *def.HttpRequestDef

func GenReqDefForListDeployments

func GenReqDefForListDeployments() *def.HttpRequestDef

func GenReqDefForListDeviceTemplates

func GenReqDefForListDeviceTemplates() *def.HttpRequestDef

func GenReqDefForListDevices

func GenReqDefForListDevices() *def.HttpRequestDef

func GenReqDefForListEdgeNodeCerts

func GenReqDefForListEdgeNodeCerts() *def.HttpRequestDef

func GenReqDefForListEdgeNodes

func GenReqDefForListEdgeNodes() *def.HttpRequestDef

func GenReqDefForListEndpoints

func GenReqDefForListEndpoints() *def.HttpRequestDef

func GenReqDefForListPods

func GenReqDefForListPods() *def.HttpRequestDef

func GenReqDefForListResourceByTags

func GenReqDefForListResourceByTags() *def.HttpRequestDef

func GenReqDefForListRuleErrors

func GenReqDefForListRuleErrors() *def.HttpRequestDef

func GenReqDefForListRules

func GenReqDefForListRules() *def.HttpRequestDef

func GenReqDefForListSecrets

func GenReqDefForListSecrets() *def.HttpRequestDef

func GenReqDefForListServices

func GenReqDefForListServices() *def.HttpRequestDef

func GenReqDefForListTags

func GenReqDefForListTags() *def.HttpRequestDef

func GenReqDefForListTagsByResourceType

func GenReqDefForListTagsByResourceType() *def.HttpRequestDef

func GenReqDefForShowAppDetail

func GenReqDefForShowAppDetail() *def.HttpRequestDef

func GenReqDefForShowAppVersionDetail

func GenReqDefForShowAppVersionDetail() *def.HttpRequestDef

func GenReqDefForShowConfigMap

func GenReqDefForShowConfigMap() *def.HttpRequestDef

func GenReqDefForShowDeployment

func GenReqDefForShowDeployment() *def.HttpRequestDef

func GenReqDefForShowDevice

func GenReqDefForShowDevice() *def.HttpRequestDef

func GenReqDefForShowDeviceTemplate

func GenReqDefForShowDeviceTemplate() *def.HttpRequestDef

func GenReqDefForShowDeviceTwin

func GenReqDefForShowDeviceTwin() *def.HttpRequestDef

func GenReqDefForShowEdgeNodeDetail

func GenReqDefForShowEdgeNodeDetail() *def.HttpRequestDef

func GenReqDefForShowEndPointDetail

func GenReqDefForShowEndPointDetail() *def.HttpRequestDef

func GenReqDefForShowRuleDetail

func GenReqDefForShowRuleDetail() *def.HttpRequestDef

func GenReqDefForShowSecret

func GenReqDefForShowSecret() *def.HttpRequestDef

func GenReqDefForShowServiceDetail

func GenReqDefForShowServiceDetail() *def.HttpRequestDef

func GenReqDefForStartRule

func GenReqDefForStartRule() *def.HttpRequestDef

func GenReqDefForStopRule

func GenReqDefForStopRule() *def.HttpRequestDef

func GenReqDefForUpdateApp

func GenReqDefForUpdateApp() *def.HttpRequestDef

func GenReqDefForUpdateAppVersion

func GenReqDefForUpdateAppVersion() *def.HttpRequestDef

func GenReqDefForUpdateConfigMap

func GenReqDefForUpdateConfigMap() *def.HttpRequestDef

func GenReqDefForUpdateDeployment

func GenReqDefForUpdateDeployment() *def.HttpRequestDef

func GenReqDefForUpdateDevice

func GenReqDefForUpdateDevice() *def.HttpRequestDef

func GenReqDefForUpdateDeviceTemplateById

func GenReqDefForUpdateDeviceTemplateById() *def.HttpRequestDef

func GenReqDefForUpdateDeviceTwin

func GenReqDefForUpdateDeviceTwin() *def.HttpRequestDef

func GenReqDefForUpdateEdgeNode

func GenReqDefForUpdateEdgeNode() *def.HttpRequestDef

func GenReqDefForUpdateEdgeNodeDevice

func GenReqDefForUpdateEdgeNodeDevice() *def.HttpRequestDef

func GenReqDefForUpdateNodeByDeviceId

func GenReqDefForUpdateNodeByDeviceId() *def.HttpRequestDef

func GenReqDefForUpdateSecret

func GenReqDefForUpdateSecret() *def.HttpRequestDef

func GenReqDefForUpdateService

func GenReqDefForUpdateService() *def.HttpRequestDef

func IefClientBuilder

func IefClientBuilder() *http_client.HcHttpClientBuilder

Types

type IefClient

type IefClient struct {
	HcClient *http_client.HcHttpClient
}

func NewIefClient

func NewIefClient(hcClient *http_client.HcHttpClient) *IefClient

func (*IefClient) BatchAddDeleteTags

func (c *IefClient) BatchAddDeleteTags(request *model.BatchAddDeleteTagsRequest) (*model.BatchAddDeleteTagsResponse, error)

为指定实例批量添加或删除标签。 一个资源上最多有20个标签。 说明: - 此接口为幂等接口,创建时如果请求体中存在重复key则报错。 - 创建时不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。 - 删除时不对标签字符集范围做校验,如果删除的标签不存在,默认处理成功。删除时tags结构体不能缺失,key不能为空,或者空字符串。

func (*IefClient) CreateApp

func (c *IefClient) CreateApp(request *model.CreateAppRequest) (*model.CreateAppResponse, error)

该API用于创建一个应用模板。

func (*IefClient) CreateAppVersions

func (c *IefClient) CreateAppVersions(request *model.CreateAppVersionsRequest) (*model.CreateAppVersionsResponse, error)

创建一个应用模板版本

func (*IefClient) CreateConfigMap

func (c *IefClient) CreateConfigMap(request *model.CreateConfigMapRequest) (*model.CreateConfigMapResponse, error)

创建配置项

func (*IefClient) CreateDeployments

func (c *IefClient) CreateDeployments(request *model.CreateDeploymentsRequest) (*model.CreateDeploymentsResponse, error)

创建部署

func (*IefClient) CreateDevice

func (c *IefClient) CreateDevice(request *model.CreateDeviceRequest) (*model.CreateDeviceResponse, error)

该API用于注册一个终端设备。

func (*IefClient) CreateDeviceTemplate

创建一个终端设备模板

func (*IefClient) CreateEdgeNode

func (c *IefClient) CreateEdgeNode(request *model.CreateEdgeNodeRequest) (*model.CreateEdgeNodeResponse, error)

该API用于注册一个边缘节点。接口调用成功后,您可以将响应消息体中node.package字段使用base64解码成tar.gz文件,并在控制台下载边缘核心软件,然后纳管边缘节点。

func (*IefClient) CreateEdgeNodeCerts

创建边缘节点上的应用证书和设备证书。

func (*IefClient) CreateEndpoint

func (c *IefClient) CreateEndpoint(request *model.CreateEndpointRequest) (*model.CreateEndpointResponse, error)

创建一个端点

func (*IefClient) CreateRule

func (c *IefClient) CreateRule(request *model.CreateRuleRequest) (*model.CreateRuleResponse, error)

创建一条规则

func (*IefClient) CreateSecret

func (c *IefClient) CreateSecret(request *model.CreateSecretRequest) (*model.CreateSecretResponse, error)

创建密钥

func (*IefClient) CreateService

func (c *IefClient) CreateService(request *model.CreateServiceRequest) (*model.CreateServiceResponse, error)

创建一个服务

func (*IefClient) CreateTag

func (c *IefClient) CreateTag(request *model.CreateTagRequest) (*model.CreateTagResponse, error)

为资源添加标签。 一个资源上最多有20个标签。 此接口为幂等接口,创建时,如果创建的标签已经存在(key相同),则覆盖。

func (*IefClient) DeleteApp

func (c *IefClient) DeleteApp(request *model.DeleteAppRequest) (*model.DeleteAppResponse, error)

删除应用模板

func (*IefClient) DeleteAppVersion

func (c *IefClient) DeleteAppVersion(request *model.DeleteAppVersionRequest) (*model.DeleteAppVersionResponse, error)

删除应用版本

func (*IefClient) DeleteConfigMap

func (c *IefClient) DeleteConfigMap(request *model.DeleteConfigMapRequest) (*model.DeleteConfigMapResponse, error)

删除配置项

func (*IefClient) DeleteDeployment

func (c *IefClient) DeleteDeployment(request *model.DeleteDeploymentRequest) (*model.DeleteDeploymentResponse, error)

删除应用部署

func (*IefClient) DeleteDevice

func (c *IefClient) DeleteDevice(request *model.DeleteDeviceRequest) (*model.DeleteDeviceResponse, error)

该API用于删除终端设备。

func (*IefClient) DeleteDeviceTemplate

删除终端设备模板

func (*IefClient) DeleteEdgeNode

func (c *IefClient) DeleteEdgeNode(request *model.DeleteEdgeNodeRequest) (*model.DeleteEdgeNodeResponse, error)

删除边缘节点

func (*IefClient) DeleteEdgeNodeCerts

删除边缘节点上的证书(目前只支持删除应用证书和设备证书)

func (*IefClient) DeleteEndPoint

func (c *IefClient) DeleteEndPoint(request *model.DeleteEndPointRequest) (*model.DeleteEndPointResponse, error)

删除一个端点

func (*IefClient) DeleteResourceTag

func (c *IefClient) DeleteResourceTag(request *model.DeleteResourceTagRequest) (*model.DeleteResourceTagResponse, error)

删除资源标签。删除时不对标签字符集做校验,调用前必须要做encodeURI,服务端需要对接口uri做decodeURI。删除的key不存在报404,Key不能为空或者空字符串。

func (*IefClient) DeleteRule

func (c *IefClient) DeleteRule(request *model.DeleteRuleRequest) (*model.DeleteRuleResponse, error)

删除一条规则

func (*IefClient) DeleteSecret

func (c *IefClient) DeleteSecret(request *model.DeleteSecretRequest) (*model.DeleteSecretResponse, error)

删除密钥

func (*IefClient) DeleteService

func (c *IefClient) DeleteService(request *model.DeleteServiceRequest) (*model.DeleteServiceResponse, error)

删除一个服务

func (*IefClient) EnableDisableEdgeNodes

该API用于启用停用边缘节点。被停用的边缘节点将无法连接到云端服务,可用该URI启用边缘节点恢复连接。

func (*IefClient) ListAppVersions

func (c *IefClient) ListAppVersions(request *model.ListAppVersionsRequest) (*model.ListAppVersionsResponse, error)

查询应用模板版本列表

func (*IefClient) ListApps

func (c *IefClient) ListApps(request *model.ListAppsRequest) (*model.ListAppsResponse, error)

查询应用模板列表

func (*IefClient) ListConfigMaps

func (c *IefClient) ListConfigMaps(request *model.ListConfigMapsRequest) (*model.ListConfigMapsResponse, error)

查询配置项列表

func (*IefClient) ListDeployments

func (c *IefClient) ListDeployments(request *model.ListDeploymentsRequest) (*model.ListDeploymentsResponse, error)

查询部署列表

func (*IefClient) ListDeviceTemplates

查询终端设备模板列表

func (*IefClient) ListDevices

func (c *IefClient) ListDevices(request *model.ListDevicesRequest) (*model.ListDevicesResponse, error)

该API用于查询终端设备列表。

func (*IefClient) ListEdgeNodeCerts

func (c *IefClient) ListEdgeNodeCerts(request *model.ListEdgeNodeCertsRequest) (*model.ListEdgeNodeCertsResponse, error)

查询边缘节点上的应用证书和设备证书。

func (*IefClient) ListEdgeNodes

func (c *IefClient) ListEdgeNodes(request *model.ListEdgeNodesRequest) (*model.ListEdgeNodesResponse, error)

该API用于查询边缘节点。 - 如果不携带任何检索参数,将返回该租户的所有边缘节点信息。 - app_name和tags不支持复合查询,如果同时存在则返回tags查询结果,可以同时携带多个其他检索参数,可同时生效。

func (*IefClient) ListEndpoints

func (c *IefClient) ListEndpoints(request *model.ListEndpointsRequest) (*model.ListEndpointsResponse, error)

获取所有的端点详情。 如果不携带任何检索参数,将返回该租户的所有端点信息和系统中所有的共享端点。 如果同时指定is_shared=true和其他参数,同样还会对name、type进行过滤。

func (*IefClient) ListPods

func (c *IefClient) ListPods(request *model.ListPodsRequest) (*model.ListPodsResponse, error)

查询应用实例列表

func (*IefClient) ListResourceByTags

func (c *IefClient) ListResourceByTags(request *model.ListResourceByTagsRequest) (*model.ListResourceByTagsResponse, error)

使用标签过滤实例

func (*IefClient) ListRuleErrors

func (c *IefClient) ListRuleErrors(request *model.ListRuleErrorsRequest) (*model.ListRuleErrorsResponse, error)

查询特定规则下的所有错误列表

func (*IefClient) ListRules

func (c *IefClient) ListRules(request *model.ListRulesRequest) (*model.ListRulesResponse, error)

查询到所有的规则

func (*IefClient) ListSecrets

func (c *IefClient) ListSecrets(request *model.ListSecretsRequest) (*model.ListSecretsResponse, error)

查询密钥列表

func (*IefClient) ListServices

func (c *IefClient) ListServices(request *model.ListServicesRequest) (*model.ListServicesResponse, error)

获取所有的服务详情

func (*IefClient) ListTags

func (c *IefClient) ListTags(request *model.ListTagsRequest) (*model.ListTagsResponse, error)

查询指定实例的标签信息

func (*IefClient) ListTagsByResourceType

查询指定项目中实例类型的所有资源标签集合

func (*IefClient) ShowAppDetail

func (c *IefClient) ShowAppDetail(request *model.ShowAppDetailRequest) (*model.ShowAppDetailResponse, error)

查询应用模板详情。

func (*IefClient) ShowAppVersionDetail

查询应用模板版本详情

func (*IefClient) ShowConfigMap

func (c *IefClient) ShowConfigMap(request *model.ShowConfigMapRequest) (*model.ShowConfigMapResponse, error)

查询一个配置项详情

func (*IefClient) ShowDeployment

func (c *IefClient) ShowDeployment(request *model.ShowDeploymentRequest) (*model.ShowDeploymentResponse, error)

查询应用部署

func (*IefClient) ShowDevice

func (c *IefClient) ShowDevice(request *model.ShowDeviceRequest) (*model.ShowDeviceResponse, error)

该API用于查询终端设备详情。

func (*IefClient) ShowDeviceTemplate

func (c *IefClient) ShowDeviceTemplate(request *model.ShowDeviceTemplateRequest) (*model.ShowDeviceTemplateResponse, error)

查询一个终端设备模板

func (*IefClient) ShowDeviceTwin

func (c *IefClient) ShowDeviceTwin(request *model.ShowDeviceTwinRequest) (*model.ShowDeviceTwinResponse, error)

该API用于查询终端设备孪生。

func (*IefClient) ShowEdgeNodeDetail

func (c *IefClient) ShowEdgeNodeDetail(request *model.ShowEdgeNodeDetailRequest) (*model.ShowEdgeNodeDetailResponse, error)

该API用于查询边缘节点详情。

func (*IefClient) ShowEndPointDetail

func (c *IefClient) ShowEndPointDetail(request *model.ShowEndPointDetailRequest) (*model.ShowEndPointDetailResponse, error)

查询一个端点的详情

func (*IefClient) ShowRuleDetail

func (c *IefClient) ShowRuleDetail(request *model.ShowRuleDetailRequest) (*model.ShowRuleDetailResponse, error)

获取一条规则的详情

func (*IefClient) ShowSecret

func (c *IefClient) ShowSecret(request *model.ShowSecretRequest) (*model.ShowSecretResponse, error)

查询一个密钥详情

func (*IefClient) ShowServiceDetail

func (c *IefClient) ShowServiceDetail(request *model.ShowServiceDetailRequest) (*model.ShowServiceDetailResponse, error)

查询一个服务的详情

func (*IefClient) StartRule

func (c *IefClient) StartRule(request *model.StartRuleRequest) (*model.StartRuleResponse, error)

启用一条规则

func (*IefClient) StopRule

func (c *IefClient) StopRule(request *model.StopRuleRequest) (*model.StopRuleResponse, error)

停用一条规则

func (*IefClient) UpdateApp

func (c *IefClient) UpdateApp(request *model.UpdateAppRequest) (*model.UpdateAppResponse, error)

更新一个应用模板。

func (*IefClient) UpdateAppVersion

func (c *IefClient) UpdateAppVersion(request *model.UpdateAppVersionRequest) (*model.UpdateAppVersionResponse, error)

更新一个应用模板版本

func (*IefClient) UpdateConfigMap

func (c *IefClient) UpdateConfigMap(request *model.UpdateConfigMapRequest) (*model.UpdateConfigMapResponse, error)

更新一个配置项

func (*IefClient) UpdateDeployment

func (c *IefClient) UpdateDeployment(request *model.UpdateDeploymentRequest) (*model.UpdateDeploymentResponse, error)

修改应用部署

func (*IefClient) UpdateDevice

func (c *IefClient) UpdateDevice(request *model.UpdateDeviceRequest) (*model.UpdateDeviceResponse, error)

更新一个终端设备。

func (*IefClient) UpdateDeviceTemplateById

更新一个终端设备模板。

func (*IefClient) UpdateDeviceTwin

func (c *IefClient) UpdateDeviceTwin(request *model.UpdateDeviceTwinRequest) (*model.UpdateDeviceTwinResponse, error)

该API用于更新终端设备孪生。

func (*IefClient) UpdateEdgeNode

func (c *IefClient) UpdateEdgeNode(request *model.UpdateEdgeNodeRequest) (*model.UpdateEdgeNodeResponse, error)

该API用于更新边缘节点。

func (*IefClient) UpdateEdgeNodeDevice

添加或删除边缘节点的终端设备

func (*IefClient) UpdateNodeByDeviceId

该API用于更新终端设备的边缘节点。功能与更新边缘节点的终端设备相同,推荐使用更新边缘节点的终端设备。

func (*IefClient) UpdateSecret

func (c *IefClient) UpdateSecret(request *model.UpdateSecretRequest) (*model.UpdateSecretResponse, error)

更新一个密钥

func (*IefClient) UpdateService

func (c *IefClient) UpdateService(request *model.UpdateServiceRequest) (*model.UpdateServiceResponse, error)

更新一个服务

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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