Documentation ¶
Index ¶
- func EipClientBuilder() *http_client.HcHttpClientBuilder
- func GenReqDefForAddPublicipsIntoSharedBandwidth() *def.HttpRequestDef
- func GenReqDefForBatchCreatePublicipTags() *def.HttpRequestDef
- func GenReqDefForBatchCreateSharedBandwidths() *def.HttpRequestDef
- func GenReqDefForBatchDeletePublicipTags() *def.HttpRequestDef
- func GenReqDefForCreatePrePaidPublicip() *def.HttpRequestDef
- func GenReqDefForCreatePublicip() *def.HttpRequestDef
- func GenReqDefForCreatePublicipTag() *def.HttpRequestDef
- func GenReqDefForCreateSharedBandwidth() *def.HttpRequestDef
- func GenReqDefForDeletePublicip() *def.HttpRequestDef
- func GenReqDefForDeletePublicipTag() *def.HttpRequestDef
- func GenReqDefForDeleteSharedBandwidth() *def.HttpRequestDef
- func GenReqDefForListBandwidths() *def.HttpRequestDef
- func GenReqDefForListPublicipTags() *def.HttpRequestDef
- func GenReqDefForListPublicips() *def.HttpRequestDef
- func GenReqDefForListPublicipsByTags() *def.HttpRequestDef
- func GenReqDefForListQuotas() *def.HttpRequestDef
- func GenReqDefForNeutronCreateFloatingIp() *def.HttpRequestDef
- func GenReqDefForNeutronDeleteFloatingIp() *def.HttpRequestDef
- func GenReqDefForNeutronListFloatingIps() *def.HttpRequestDef
- func GenReqDefForNeutronShowFloatingIp() *def.HttpRequestDef
- func GenReqDefForNeutronUpdateFloatingIp() *def.HttpRequestDef
- func GenReqDefForRemovePublicipsFromSharedBandwidth() *def.HttpRequestDef
- func GenReqDefForShowBandwidth() *def.HttpRequestDef
- func GenReqDefForShowPublicip() *def.HttpRequestDef
- func GenReqDefForShowPublicipTags() *def.HttpRequestDef
- func GenReqDefForUpdateBandwidth() *def.HttpRequestDef
- func GenReqDefForUpdatePrePaidBandwidth() *def.HttpRequestDef
- func GenReqDefForUpdatePublicip() *def.HttpRequestDef
- type EipClient
- func (c *EipClient) AddPublicipsIntoSharedBandwidth(request *model.AddPublicipsIntoSharedBandwidthRequest) (*model.AddPublicipsIntoSharedBandwidthResponse, error)
- func (c *EipClient) BatchCreatePublicipTags(request *model.BatchCreatePublicipTagsRequest) (*model.BatchCreatePublicipTagsResponse, error)
- func (c *EipClient) BatchCreateSharedBandwidths(request *model.BatchCreateSharedBandwidthsRequest) (*model.BatchCreateSharedBandwidthsResponse, error)
- func (c *EipClient) BatchDeletePublicipTags(request *model.BatchDeletePublicipTagsRequest) (*model.BatchDeletePublicipTagsResponse, error)
- func (c *EipClient) CreatePrePaidPublicip(request *model.CreatePrePaidPublicipRequest) (*model.CreatePrePaidPublicipResponse, error)
- func (c *EipClient) CreatePublicip(request *model.CreatePublicipRequest) (*model.CreatePublicipResponse, error)
- func (c *EipClient) CreatePublicipTag(request *model.CreatePublicipTagRequest) (*model.CreatePublicipTagResponse, error)
- func (c *EipClient) CreateSharedBandwidth(request *model.CreateSharedBandwidthRequest) (*model.CreateSharedBandwidthResponse, error)
- func (c *EipClient) DeletePublicip(request *model.DeletePublicipRequest) (*model.DeletePublicipResponse, error)
- func (c *EipClient) DeletePublicipTag(request *model.DeletePublicipTagRequest) (*model.DeletePublicipTagResponse, error)
- func (c *EipClient) DeleteSharedBandwidth(request *model.DeleteSharedBandwidthRequest) (*model.DeleteSharedBandwidthResponse, error)
- func (c *EipClient) ListBandwidths(request *model.ListBandwidthsRequest) (*model.ListBandwidthsResponse, error)
- func (c *EipClient) ListPublicipTags(request *model.ListPublicipTagsRequest) (*model.ListPublicipTagsResponse, error)
- func (c *EipClient) ListPublicips(request *model.ListPublicipsRequest) (*model.ListPublicipsResponse, error)
- func (c *EipClient) ListPublicipsByTags(request *model.ListPublicipsByTagsRequest) (*model.ListPublicipsByTagsResponse, error)
- func (c *EipClient) ListQuotas(request *model.ListQuotasRequest) (*model.ListQuotasResponse, error)
- func (c *EipClient) NeutronCreateFloatingIp(request *model.NeutronCreateFloatingIpRequest) (*model.NeutronCreateFloatingIpResponse, error)
- func (c *EipClient) NeutronDeleteFloatingIp(request *model.NeutronDeleteFloatingIpRequest) (*model.NeutronDeleteFloatingIpResponse, error)
- func (c *EipClient) NeutronListFloatingIps(request *model.NeutronListFloatingIpsRequest) (*model.NeutronListFloatingIpsResponse, error)
- func (c *EipClient) NeutronShowFloatingIp(request *model.NeutronShowFloatingIpRequest) (*model.NeutronShowFloatingIpResponse, error)
- func (c *EipClient) NeutronUpdateFloatingIp(request *model.NeutronUpdateFloatingIpRequest) (*model.NeutronUpdateFloatingIpResponse, error)
- func (c *EipClient) RemovePublicipsFromSharedBandwidth(request *model.RemovePublicipsFromSharedBandwidthRequest) (*model.RemovePublicipsFromSharedBandwidthResponse, error)
- func (c *EipClient) ShowBandwidth(request *model.ShowBandwidthRequest) (*model.ShowBandwidthResponse, error)
- func (c *EipClient) ShowPublicip(request *model.ShowPublicipRequest) (*model.ShowPublicipResponse, error)
- func (c *EipClient) ShowPublicipTags(request *model.ShowPublicipTagsRequest) (*model.ShowPublicipTagsResponse, error)
- func (c *EipClient) UpdateBandwidth(request *model.UpdateBandwidthRequest) (*model.UpdateBandwidthResponse, error)
- func (c *EipClient) UpdatePrePaidBandwidth(request *model.UpdatePrePaidBandwidthRequest) (*model.UpdatePrePaidBandwidthResponse, error)
- func (c *EipClient) UpdatePublicip(request *model.UpdatePublicipRequest) (*model.UpdatePublicipResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EipClientBuilder ¶
func EipClientBuilder() *http_client.HcHttpClientBuilder
func GenReqDefForAddPublicipsIntoSharedBandwidth ¶
func GenReqDefForAddPublicipsIntoSharedBandwidth() *def.HttpRequestDef
func GenReqDefForBatchCreatePublicipTags ¶
func GenReqDefForBatchCreatePublicipTags() *def.HttpRequestDef
func GenReqDefForBatchCreateSharedBandwidths ¶
func GenReqDefForBatchCreateSharedBandwidths() *def.HttpRequestDef
func GenReqDefForBatchDeletePublicipTags ¶
func GenReqDefForBatchDeletePublicipTags() *def.HttpRequestDef
func GenReqDefForCreatePrePaidPublicip ¶
func GenReqDefForCreatePrePaidPublicip() *def.HttpRequestDef
func GenReqDefForCreatePublicip ¶
func GenReqDefForCreatePublicip() *def.HttpRequestDef
func GenReqDefForCreatePublicipTag ¶
func GenReqDefForCreatePublicipTag() *def.HttpRequestDef
func GenReqDefForCreateSharedBandwidth ¶
func GenReqDefForCreateSharedBandwidth() *def.HttpRequestDef
func GenReqDefForDeletePublicip ¶
func GenReqDefForDeletePublicip() *def.HttpRequestDef
func GenReqDefForDeletePublicipTag ¶
func GenReqDefForDeletePublicipTag() *def.HttpRequestDef
func GenReqDefForDeleteSharedBandwidth ¶
func GenReqDefForDeleteSharedBandwidth() *def.HttpRequestDef
func GenReqDefForListBandwidths ¶
func GenReqDefForListBandwidths() *def.HttpRequestDef
func GenReqDefForListPublicipTags ¶
func GenReqDefForListPublicipTags() *def.HttpRequestDef
func GenReqDefForListPublicips ¶
func GenReqDefForListPublicips() *def.HttpRequestDef
func GenReqDefForListPublicipsByTags ¶
func GenReqDefForListPublicipsByTags() *def.HttpRequestDef
func GenReqDefForListQuotas ¶
func GenReqDefForListQuotas() *def.HttpRequestDef
func GenReqDefForNeutronCreateFloatingIp ¶
func GenReqDefForNeutronCreateFloatingIp() *def.HttpRequestDef
func GenReqDefForNeutronDeleteFloatingIp ¶
func GenReqDefForNeutronDeleteFloatingIp() *def.HttpRequestDef
func GenReqDefForNeutronListFloatingIps ¶
func GenReqDefForNeutronListFloatingIps() *def.HttpRequestDef
func GenReqDefForNeutronShowFloatingIp ¶
func GenReqDefForNeutronShowFloatingIp() *def.HttpRequestDef
func GenReqDefForNeutronUpdateFloatingIp ¶
func GenReqDefForNeutronUpdateFloatingIp() *def.HttpRequestDef
func GenReqDefForRemovePublicipsFromSharedBandwidth ¶
func GenReqDefForRemovePublicipsFromSharedBandwidth() *def.HttpRequestDef
func GenReqDefForShowBandwidth ¶
func GenReqDefForShowBandwidth() *def.HttpRequestDef
func GenReqDefForShowPublicip ¶
func GenReqDefForShowPublicip() *def.HttpRequestDef
func GenReqDefForShowPublicipTags ¶
func GenReqDefForShowPublicipTags() *def.HttpRequestDef
func GenReqDefForUpdateBandwidth ¶
func GenReqDefForUpdateBandwidth() *def.HttpRequestDef
func GenReqDefForUpdatePrePaidBandwidth ¶
func GenReqDefForUpdatePrePaidBandwidth() *def.HttpRequestDef
func GenReqDefForUpdatePublicip ¶
func GenReqDefForUpdatePublicip() *def.HttpRequestDef
Types ¶
type EipClient ¶
type EipClient struct {
HcClient *http_client.HcHttpClient
}
func NewEipClient ¶
func NewEipClient(hcClient *http_client.HcHttpClient) *EipClient
func (*EipClient) AddPublicipsIntoSharedBandwidth ¶
func (c *EipClient) AddPublicipsIntoSharedBandwidth(request *model.AddPublicipsIntoSharedBandwidthRequest) (*model.AddPublicipsIntoSharedBandwidthResponse, error)
共享带宽插入弹性公网IP。
func (*EipClient) BatchCreatePublicipTags ¶
func (c *EipClient) BatchCreatePublicipTags(request *model.BatchCreatePublicipTagsRequest) (*model.BatchCreatePublicipTagsResponse, error)
为指定的弹性公网IP资源实例批量添加标签。
func (*EipClient) BatchCreateSharedBandwidths ¶
func (c *EipClient) BatchCreateSharedBandwidths(request *model.BatchCreateSharedBandwidthsRequest) (*model.BatchCreateSharedBandwidthsResponse, error)
批量创建共享带宽。
func (*EipClient) BatchDeletePublicipTags ¶
func (c *EipClient) BatchDeletePublicipTags(request *model.BatchDeletePublicipTagsRequest) (*model.BatchDeletePublicipTagsResponse, error)
为指定的弹性公网IP资源实例批量删除标签。
func (*EipClient) CreatePrePaidPublicip ¶
func (c *EipClient) CreatePrePaidPublicip(request *model.CreatePrePaidPublicipRequest) (*model.CreatePrePaidPublicipResponse, error)
申请包年包月的弹性公网IP。
func (*EipClient) CreatePublicip ¶
func (c *EipClient) CreatePublicip(request *model.CreatePublicipRequest) (*model.CreatePublicipResponse, error)
申请弹性公网IP,支持IPv4和IPv6。 弹性公网IP(Elastic IP)提供独立的公网IP资源,包括公网IP地址与公网出口带宽服务。可以与弹性云服务器、裸金属服务器、虚拟IP、弹性负载均衡、NAT网关等资源灵活地绑定及解绑。拥有多种灵活的计费方式,可以满足各种业务场景的需要。
func (*EipClient) CreatePublicipTag ¶
func (c *EipClient) CreatePublicipTag(request *model.CreatePublicipTagRequest) (*model.CreatePublicipTagResponse, error)
给指定弹性IP资源实例增加标签信息。
func (*EipClient) CreateSharedBandwidth ¶
func (c *EipClient) CreateSharedBandwidth(request *model.CreateSharedBandwidthRequest) (*model.CreateSharedBandwidthResponse, error)
创建共享带宽。
func (*EipClient) DeletePublicip ¶
func (c *EipClient) DeletePublicip(request *model.DeletePublicipRequest) (*model.DeletePublicipResponse, error)
删除弹性公网IP,绑定状态eip不允许直接删除。
func (*EipClient) DeletePublicipTag ¶
func (c *EipClient) DeletePublicipTag(request *model.DeletePublicipTagRequest) (*model.DeletePublicipTagResponse, error)
删除指定弹性公网IP的标签信息。其中project_id是项目ID,publicip_id 是要操作的弹性公网IP的id。key是要删除标签的键。
func (*EipClient) DeleteSharedBandwidth ¶
func (c *EipClient) DeleteSharedBandwidth(request *model.DeleteSharedBandwidthRequest) (*model.DeleteSharedBandwidthResponse, error)
删除共享带宽。
func (*EipClient) ListBandwidths ¶
func (c *EipClient) ListBandwidths(request *model.ListBandwidthsRequest) (*model.ListBandwidthsResponse, error)
查询带宽列表。
func (*EipClient) ListPublicipTags ¶
func (c *EipClient) ListPublicipTags(request *model.ListPublicipTagsRequest) (*model.ListPublicipTagsResponse, error)
查询租户在指定区域和实例类型的所有标签集合。
func (*EipClient) ListPublicips ¶
func (c *EipClient) ListPublicips(request *model.ListPublicipsRequest) (*model.ListPublicipsResponse, error)
查询弹性公网IP列表
func (*EipClient) ListPublicipsByTags ¶
func (c *EipClient) ListPublicipsByTags(request *model.ListPublicipsByTagsRequest) (*model.ListPublicipsByTagsResponse, error)
使用标签过滤弹性公网IP。
func (*EipClient) ListQuotas ¶
func (c *EipClient) ListQuotas(request *model.ListQuotasRequest) (*model.ListQuotasResponse, error)
查询配额
func (*EipClient) NeutronCreateFloatingIp ¶
func (c *EipClient) NeutronCreateFloatingIp(request *model.NeutronCreateFloatingIpRequest) (*model.NeutronCreateFloatingIpResponse, error)
创建浮动IP的外部网络UUID,请使用GET /v2.0/networks?router:external=True或neutron net-external-list方式获取。
func (*EipClient) NeutronDeleteFloatingIp ¶
func (c *EipClient) NeutronDeleteFloatingIp(request *model.NeutronDeleteFloatingIpRequest) (*model.NeutronDeleteFloatingIpResponse, error)
删除指定的浮动IP。
func (*EipClient) NeutronListFloatingIps ¶
func (c *EipClient) NeutronListFloatingIps(request *model.NeutronListFloatingIpsRequest) (*model.NeutronListFloatingIpsResponse, error)
查询提交请求的租户有权限操作的所有浮动IP地址。
func (*EipClient) NeutronShowFloatingIp ¶
func (c *EipClient) NeutronShowFloatingIp(request *model.NeutronShowFloatingIpRequest) (*model.NeutronShowFloatingIpResponse, error)
查询浮动IP详情,包括浮动IP状态,浮动IP所属路由器ID,浮动IP的外部网络ID等等。
func (*EipClient) NeutronUpdateFloatingIp ¶
func (c *EipClient) NeutronUpdateFloatingIp(request *model.NeutronUpdateFloatingIpRequest) (*model.NeutronUpdateFloatingIpResponse, error)
更新浮动IP。 更新时需在URL中给出浮动IP地址的ID。 port_id 为空,则表示浮动IP从端口解绑。
func (*EipClient) RemovePublicipsFromSharedBandwidth ¶
func (c *EipClient) RemovePublicipsFromSharedBandwidth(request *model.RemovePublicipsFromSharedBandwidthRequest) (*model.RemovePublicipsFromSharedBandwidthResponse, error)
共享带宽移除弹性公网IP。
func (*EipClient) ShowBandwidth ¶
func (c *EipClient) ShowBandwidth(request *model.ShowBandwidthRequest) (*model.ShowBandwidthResponse, error)
查询带宽
func (*EipClient) ShowPublicip ¶
func (c *EipClient) ShowPublicip(request *model.ShowPublicipRequest) (*model.ShowPublicipResponse, error)
查询指定的弹性公网IP。
func (*EipClient) ShowPublicipTags ¶
func (c *EipClient) ShowPublicipTags(request *model.ShowPublicipTagsRequest) (*model.ShowPublicipTagsResponse, error)
查询指定弹性IP实例的标签信息。
func (*EipClient) UpdateBandwidth ¶
func (c *EipClient) UpdateBandwidth(request *model.UpdateBandwidthRequest) (*model.UpdateBandwidthResponse, error)
更新带宽。
func (*EipClient) UpdatePrePaidBandwidth ¶
func (c *EipClient) UpdatePrePaidBandwidth(request *model.UpdatePrePaidBandwidthRequest) (*model.UpdatePrePaidBandwidthResponse, error)
更新带宽。
func (*EipClient) UpdatePublicip ¶
func (c *EipClient) UpdatePublicip(request *model.UpdatePublicipRequest) (*model.UpdatePublicipResponse, error)
更新弹性公网IP,将弹性公网IP跟一个网卡绑定或者解绑定,转换IP地址版本类型。