v1

package
v0.0.67 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 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 GenReqDefForAddNics

func GenReqDefForAddNics() *def.HttpRequestDef

func GenReqDefForBatchRebootInstance

func GenReqDefForBatchRebootInstance() *def.HttpRequestDef

func GenReqDefForBatchStartInstance

func GenReqDefForBatchStartInstance() *def.HttpRequestDef

func GenReqDefForBatchStopInstance

func GenReqDefForBatchStopInstance() *def.HttpRequestDef

func GenReqDefForChangeOs

func GenReqDefForChangeOs() *def.HttpRequestDef

func GenReqDefForCreateDeployment

func GenReqDefForCreateDeployment() *def.HttpRequestDef

func GenReqDefForCreateFirewall

func GenReqDefForCreateFirewall() *def.HttpRequestDef

func GenReqDefForCreateKeypair

func GenReqDefForCreateKeypair() *def.HttpRequestDef

func GenReqDefForCreatePort

func GenReqDefForCreatePort() *def.HttpRequestDef

func GenReqDefForCreatePublicIp

func GenReqDefForCreatePublicIp() *def.HttpRequestDef

func GenReqDefForCreateSecurityGroup

func GenReqDefForCreateSecurityGroup() *def.HttpRequestDef

func GenReqDefForCreateSecurityGroupRule

func GenReqDefForCreateSecurityGroupRule() *def.HttpRequestDef

func GenReqDefForCreateVpc

func GenReqDefForCreateVpc() *def.HttpRequestDef

func GenReqDefForDeleteDeployment

func GenReqDefForDeleteDeployment() *def.HttpRequestDef

func GenReqDefForDeleteEdgeCloud

func GenReqDefForDeleteEdgeCloud() *def.HttpRequestDef

func GenReqDefForDeleteFirewall

func GenReqDefForDeleteFirewall() *def.HttpRequestDef

func GenReqDefForDeleteInstances

func GenReqDefForDeleteInstances() *def.HttpRequestDef

func GenReqDefForDeleteKeypair

func GenReqDefForDeleteKeypair() *def.HttpRequestDef

func GenReqDefForDeleteNics

func GenReqDefForDeleteNics() *def.HttpRequestDef

func GenReqDefForDeletePort

func GenReqDefForDeletePort() *def.HttpRequestDef

func GenReqDefForDeletePublicIp

func GenReqDefForDeletePublicIp() *def.HttpRequestDef

func GenReqDefForDeleteSecurityGroup

func GenReqDefForDeleteSecurityGroup() *def.HttpRequestDef

func GenReqDefForDeleteSecurityGroupRule

func GenReqDefForDeleteSecurityGroupRule() *def.HttpRequestDef

func GenReqDefForDeleteSubnet

func GenReqDefForDeleteSubnet() *def.HttpRequestDef

func GenReqDefForDeleteVpc

func GenReqDefForDeleteVpc() *def.HttpRequestDef

func GenReqDefForExecuteDeployment

func GenReqDefForExecuteDeployment() *def.HttpRequestDef

func GenReqDefForExpandEdgecloud

func GenReqDefForExpandEdgecloud() *def.HttpRequestDef

func GenReqDefForListBandwidths

func GenReqDefForListBandwidths() *def.HttpRequestDef

func GenReqDefForListDeployments

func GenReqDefForListDeployments() *def.HttpRequestDef

func GenReqDefForListEdgeCloud

func GenReqDefForListEdgeCloud() *def.HttpRequestDef

func GenReqDefForListFirewalls

func GenReqDefForListFirewalls() *def.HttpRequestDef

func GenReqDefForListFlavors

func GenReqDefForListFlavors() *def.HttpRequestDef

func GenReqDefForListImages

func GenReqDefForListImages() *def.HttpRequestDef

func GenReqDefForListInstances

func GenReqDefForListInstances() *def.HttpRequestDef

func GenReqDefForListKeypairs

func GenReqDefForListKeypairs() *def.HttpRequestDef

func GenReqDefForListPorts

func GenReqDefForListPorts() *def.HttpRequestDef

func GenReqDefForListPublicIps

func GenReqDefForListPublicIps() *def.HttpRequestDef

func GenReqDefForListQuota

func GenReqDefForListQuota() *def.HttpRequestDef

func GenReqDefForListSecurityGroupRules

func GenReqDefForListSecurityGroupRules() *def.HttpRequestDef

func GenReqDefForListSecurityGroups

func GenReqDefForListSecurityGroups() *def.HttpRequestDef

func GenReqDefForListSites

func GenReqDefForListSites() *def.HttpRequestDef

func GenReqDefForListSubnets

func GenReqDefForListSubnets() *def.HttpRequestDef

func GenReqDefForListVpcs

func GenReqDefForListVpcs() *def.HttpRequestDef

func GenReqDefForShowBandwidth

func GenReqDefForShowBandwidth() *def.HttpRequestDef

func GenReqDefForShowEdgeCloud

func GenReqDefForShowEdgeCloud() *def.HttpRequestDef

func GenReqDefForShowFirewall

func GenReqDefForShowFirewall() *def.HttpRequestDef

func GenReqDefForShowImage

func GenReqDefForShowImage() *def.HttpRequestDef

func GenReqDefForShowInstance

func GenReqDefForShowInstance() *def.HttpRequestDef

func GenReqDefForShowKeypair

func GenReqDefForShowKeypair() *def.HttpRequestDef

func GenReqDefForShowPort

func GenReqDefForShowPort() *def.HttpRequestDef

func GenReqDefForShowPublicIp

func GenReqDefForShowPublicIp() *def.HttpRequestDef

func GenReqDefForShowSecurityGroup

func GenReqDefForShowSecurityGroup() *def.HttpRequestDef

func GenReqDefForShowSecurityGroupRule

func GenReqDefForShowSecurityGroupRule() *def.HttpRequestDef

func GenReqDefForShowSubnet

func GenReqDefForShowSubnet() *def.HttpRequestDef

func GenReqDefForShowVolume

func GenReqDefForShowVolume() *def.HttpRequestDef

func GenReqDefForShowVpc

func GenReqDefForShowVpc() *def.HttpRequestDef

func GenReqDefForUpdateFirewall

func GenReqDefForUpdateFirewall() *def.HttpRequestDef

func GenReqDefForUpdateFirewallRule

func GenReqDefForUpdateFirewallRule() *def.HttpRequestDef

func GenReqDefForUpdateInstance

func GenReqDefForUpdateInstance() *def.HttpRequestDef

func GenReqDefForUpdatePort

func GenReqDefForUpdatePort() *def.HttpRequestDef

func GenReqDefForUpdatePublicIp

func GenReqDefForUpdatePublicIp() *def.HttpRequestDef

func GenReqDefForUpdateSubnet

func GenReqDefForUpdateSubnet() *def.HttpRequestDef

func GenReqDefForUpdateVpc

func GenReqDefForUpdateVpc() *def.HttpRequestDef

func IecClientBuilder

func IecClientBuilder() *http_client.HcHttpClientBuilder

Types

type IecClient

type IecClient struct {
	HcClient *http_client.HcHttpClient
}

func NewIecClient

func NewIecClient(hcClient *http_client.HcHttpClient) *IecClient

func (*IecClient) AddNics

func (c *IecClient) AddNics(request *model.AddNicsRequest) (*model.AddNicsResponse, error)

添加网卡。

func (*IecClient) BatchRebootInstance

批量重启边缘实例。

func (*IecClient) BatchStartInstance

func (c *IecClient) BatchStartInstance(request *model.BatchStartInstanceRequest) (*model.BatchStartInstanceResponse, error)

批量操作启动边缘实例。

func (*IecClient) BatchStopInstance

func (c *IecClient) BatchStopInstance(request *model.BatchStopInstanceRequest) (*model.BatchStopInstanceResponse, error)

批量关闭边缘实例。

func (*IecClient) ChangeOs

func (c *IecClient) ChangeOs(request *model.ChangeOsRequest) (*model.ChangeOsResponse, error)

切换边缘实例操作系统,支持边缘实例创建成功后,保持ip、数据盘不变的情况下重装操作系统。 调用该接口后,系统将卸载系统盘,然后使用新镜像重新创建系统盘,并挂载至实例,实现切换操作系统功能。

func (*IecClient) CreateDeployment

func (c *IecClient) CreateDeployment(request *model.CreateDeploymentRequest) (*model.CreateDeploymentResponse, error)

为方便您的统一管理,以及跨边缘站点管理资源,IEC基于业务场景角度,定义了边缘业务。 边缘业务即为逻辑层面的一套资源管理集合。这里的资源主要是指计算实例,包含实例规格、镜像、硬盘、网络等方面。通过指定计算实例的数量、调度策略以及区域分布等形成一套管理集合。[了解更多](https://support.huaweicloud.com/usermanual-iec/iec_02_0301.html) 创建一个部署计划并执行,即可创建一个边缘业务。 - 边缘业务下实例分布取决于部署计划的实例分布与调度策略。 - 边缘业务下实例名称、规格、镜像等参数取决于部署计划配置计算实例字段。

func (*IecClient) CreateFirewall

func (c *IecClient) CreateFirewall(request *model.CreateFirewallRequest) (*model.CreateFirewallResponse, error)

创建网络ACL。

func (*IecClient) CreateKeypair

func (c *IecClient) CreateKeypair(request *model.CreateKeypairRequest) (*model.CreateKeypairResponse, error)

创建SSH密钥,或把公钥导入系统,生成密钥对。 创建SSH密钥成功后,请把响应数据中的私钥内容保存到本地文件,用户使用该私钥登录边缘实例。为保证边缘实例安全,私钥数据只能读取一次,请妥善保管。

func (*IecClient) CreatePort

func (c *IecClient) CreatePort(request *model.CreatePortRequest) (*model.CreatePortResponse, error)

创建端口。

func (*IecClient) CreatePublicIp

func (c *IecClient) CreatePublicIp(request *model.CreatePublicIpRequest) (*model.CreatePublicIpResponse, error)

根据用户的请求内容,创建弹性公网IP

func (*IecClient) CreateSecurityGroup

根据用户的请求内容,创建对应的安全组。

func (*IecClient) CreateSecurityGroupRule

根据用户的请求内容,创建安全组规则。

func (*IecClient) CreateVpc

func (c *IecClient) CreateVpc(request *model.CreateVpcRequest) (*model.CreateVpcResponse, error)

根据用户的请求内容,创建虚拟私有云。

func (*IecClient) DeleteDeployment

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

删除部署计划。

func (*IecClient) DeleteEdgeCloud

func (c *IecClient) DeleteEdgeCloud(request *model.DeleteEdgeCloudRequest) (*model.DeleteEdgeCloudResponse, error)

删除边缘业务以及其下边缘实例。

func (*IecClient) DeleteFirewall

func (c *IecClient) DeleteFirewall(request *model.DeleteFirewallRequest) (*model.DeleteFirewallResponse, error)

删除网络ACL。

func (*IecClient) DeleteInstances

func (c *IecClient) DeleteInstances(request *model.DeleteInstancesRequest) (*model.DeleteInstancesResponse, error)

批量删除边缘实例。

func (*IecClient) DeleteKeypair

func (c *IecClient) DeleteKeypair(request *model.DeleteKeypairRequest) (*model.DeleteKeypairResponse, error)

删除密钥。

func (*IecClient) DeleteNics

func (c *IecClient) DeleteNics(request *model.DeleteNicsRequest) (*model.DeleteNicsResponse, error)

删除网卡。

func (*IecClient) DeletePort

func (c *IecClient) DeletePort(request *model.DeletePortRequest) (*model.DeletePortResponse, error)

删除端口。

func (*IecClient) DeletePublicIp

func (c *IecClient) DeletePublicIp(request *model.DeletePublicIpRequest) (*model.DeletePublicIpResponse, error)

根据弹性公网IP的ID,删除对应的弹性公网IP。

func (*IecClient) DeleteSecurityGroup

根据安全组的ID,删除对应的安全组。

func (*IecClient) DeleteSecurityGroupRule

根据安全组的ID,删除对应的安全组。

func (*IecClient) DeleteSubnet

func (c *IecClient) DeleteSubnet(request *model.DeleteSubnetRequest) (*model.DeleteSubnetResponse, error)

根据子网的ID,删除子网。

func (*IecClient) DeleteVpc

func (c *IecClient) DeleteVpc(request *model.DeleteVpcRequest) (*model.DeleteVpcResponse, error)

根据虚拟机私有云的ID,删除对应的虚拟私有云。

func (*IecClient) ExecuteDeployment

func (c *IecClient) ExecuteDeployment(request *model.ExecuteDeploymentRequest) (*model.ExecuteDeploymentResponse, error)

执行部署计划,创建一个边缘业务。单租户默认可创建10个边缘业务。

func (*IecClient) ExpandEdgecloud

func (c *IecClient) ExpandEdgecloud(request *model.ExpandEdgecloudRequest) (*model.ExpandEdgecloudResponse, error)

执行部署计划,对边缘业务进行扩容操作。

func (*IecClient) ListBandwidths

func (c *IecClient) ListBandwidths(request *model.ListBandwidthsRequest) (*model.ListBandwidthsResponse, error)

查询带宽列表。

func (*IecClient) ListDeployments

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

查询部署计划列表。

func (*IecClient) ListEdgeCloud

func (c *IecClient) ListEdgeCloud(request *model.ListEdgeCloudRequest) (*model.ListEdgeCloudResponse, error)

查询边缘业务列表。

func (*IecClient) ListFirewalls

func (c *IecClient) ListFirewalls(request *model.ListFirewallsRequest) (*model.ListFirewallsResponse, error)

查询网络ACL列表。

func (*IecClient) ListFlavors

func (c *IecClient) ListFlavors(request *model.ListFlavorsRequest) (*model.ListFlavorsResponse, error)

查询边缘规格列表。

func (*IecClient) ListImages

func (c *IecClient) ListImages(request *model.ListImagesRequest) (*model.ListImagesResponse, error)

根据不同条件查询镜像列表,例: - 查询已注册的私有镜像列表: visibility=private - 公共镜像: visibility=public

func (*IecClient) ListInstances

func (c *IecClient) ListInstances(request *model.ListInstancesRequest) (*model.ListInstancesResponse, error)

查询边缘实例列表。

func (*IecClient) ListKeypairs

func (c *IecClient) ListKeypairs(request *model.ListKeypairsRequest) (*model.ListKeypairsResponse, error)

查询密钥信息列表。

func (*IecClient) ListPorts

func (c *IecClient) ListPorts(request *model.ListPortsRequest) (*model.ListPortsResponse, error)

查询端口的列表信息

func (*IecClient) ListPublicIps

func (c *IecClient) ListPublicIps(request *model.ListPublicIpsRequest) (*model.ListPublicIpsResponse, error)

获取弹性公网IP列表信息。

func (*IecClient) ListQuota

func (c *IecClient) ListQuota(request *model.ListQuotaRequest) (*model.ListQuotaResponse, error)

查询租户资源配额。

func (*IecClient) ListSecurityGroupRules

根据用户的查询条件,获取安全组规则的列表信息。

func (*IecClient) ListSecurityGroups

func (c *IecClient) ListSecurityGroups(request *model.ListSecurityGroupsRequest) (*model.ListSecurityGroupsResponse, error)

根据特定查询条件,获取安全组的列表信息。

func (*IecClient) ListSites

func (c *IecClient) ListSites(request *model.ListSitesRequest) (*model.ListSitesResponse, error)

查询边缘站点列表。 - 边缘站点:靠近终端应用的位置,基于一个或多个运营商建立的一个城市级站点。边缘站点提供物理隔离的资源池,提供多元算力、存储和网络的能力。用户可以将业务灵活就近部署在边缘站点上,以降低网络时延和成本。 - 边缘区域:为依据边缘站点的物理位置划分的区域,一个边缘区域包含多个相靠近的边缘站点的集合。IEC当前提供城市级、省级和大区级三个分布层级的边缘区域。

func (*IecClient) ListSubnets

func (c *IecClient) ListSubnets(request *model.ListSubnetsRequest) (*model.ListSubnetsResponse, error)

根据查询条件获取子网的列表信息。

func (*IecClient) ListVpcs

func (c *IecClient) ListVpcs(request *model.ListVpcsRequest) (*model.ListVpcsResponse, error)

获取虚拟私有云的列表。

func (*IecClient) ShowBandwidth

func (c *IecClient) ShowBandwidth(request *model.ShowBandwidthRequest) (*model.ShowBandwidthResponse, error)

查询带宽详情。

func (*IecClient) ShowEdgeCloud

func (c *IecClient) ShowEdgeCloud(request *model.ShowEdgeCloudRequest) (*model.ShowEdgeCloudResponse, error)

查询边缘业务详情。

func (*IecClient) ShowFirewall

func (c *IecClient) ShowFirewall(request *model.ShowFirewallRequest) (*model.ShowFirewallResponse, error)

查询网络ACL详情。

func (*IecClient) ShowImage

func (c *IecClient) ShowImage(request *model.ShowImageRequest) (*model.ShowImageResponse, error)

查询镜像详情。

func (*IecClient) ShowInstance

func (c *IecClient) ShowInstance(request *model.ShowInstanceRequest) (*model.ShowInstanceResponse, error)

查询边缘实例详情。

func (*IecClient) ShowKeypair

func (c *IecClient) ShowKeypair(request *model.ShowKeypairRequest) (*model.ShowKeypairResponse, error)

查询密钥信息列表。

func (*IecClient) ShowPort

func (c *IecClient) ShowPort(request *model.ShowPortRequest) (*model.ShowPortResponse, error)

根据端口的ID,获取端口的详细信息。

func (*IecClient) ShowPublicIp

func (c *IecClient) ShowPublicIp(request *model.ShowPublicIpRequest) (*model.ShowPublicIpResponse, error)

获取弹性公网IP的详情信息。

func (*IecClient) ShowSecurityGroup

func (c *IecClient) ShowSecurityGroup(request *model.ShowSecurityGroupRequest) (*model.ShowSecurityGroupResponse, error)

根据安全组的ID,获取特定安全组的详细信息。

func (*IecClient) ShowSecurityGroupRule

根据安全组规则的ID,获取安全组规则的详细信息。

func (*IecClient) ShowSubnet

func (c *IecClient) ShowSubnet(request *model.ShowSubnetRequest) (*model.ShowSubnetResponse, error)

根据子网的ID,获取子网的详细信息。

func (*IecClient) ShowVolume

func (c *IecClient) ShowVolume(request *model.ShowVolumeRequest) (*model.ShowVolumeResponse, error)

查询硬盘详情。

func (*IecClient) ShowVpc

func (c *IecClient) ShowVpc(request *model.ShowVpcRequest) (*model.ShowVpcResponse, error)

根据虚拟私有云ID,获取虚拟私有云的详情。

func (*IecClient) UpdateFirewall

func (c *IecClient) UpdateFirewall(request *model.UpdateFirewallRequest) (*model.UpdateFirewallResponse, error)

更新网络ACL。

func (*IecClient) UpdateFirewallRule

func (c *IecClient) UpdateFirewallRule(request *model.UpdateFirewallRuleRequest) (*model.UpdateFirewallRuleResponse, error)

更新网络ACL规则。

func (*IecClient) UpdateInstance

func (c *IecClient) UpdateInstance(request *model.UpdateInstanceRequest) (*model.UpdateInstanceResponse, error)

修改边缘实例。

func (*IecClient) UpdatePort

func (c *IecClient) UpdatePort(request *model.UpdatePortRequest) (*model.UpdatePortResponse, error)

更新端口。

func (*IecClient) UpdatePublicIp

func (c *IecClient) UpdatePublicIp(request *model.UpdatePublicIpRequest) (*model.UpdatePublicIpResponse, error)

更新弹性公网IP的信息,主要用于解绑和绑定EIP和VIP之间的关系。

func (*IecClient) UpdateSubnet

func (c *IecClient) UpdateSubnet(request *model.UpdateSubnetRequest) (*model.UpdateSubnetResponse, error)

更新子网的基本信息。

func (*IecClient) UpdateVpc

func (c *IecClient) UpdateVpc(request *model.UpdateVpcRequest) (*model.UpdateVpcResponse, error)

更新虚拟私有云的信息

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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