Documentation
¶
Overview ¶
Package publicips manages EIPs (elastic IP addresses) through the VPC v1 API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateOpts ¶
type CreateOpts struct {
Publicip PublicIPRequest `json:"publicip" required:"true"`
Bandwidth BandWidth `json:"bandwidth" required:"true"`
// EnterpriseProjectId is not documented as a create request parameter in
// the reviewed OTC documentation.
EnterpriseProjectId string `json:"enterprise_project_id,omitempty"`
}
type PublicIP ¶
type PublicIP struct {
ID string `json:"id"`
Status string `json:"status"`
Profile Profile `json:"profile"`
Type string `json:"type"`
PublicIpAddress string `json:"public_ip_address"`
// PublicIpV6Address is not documented in the reviewed OTC documentation.
PublicIpV6Address string `json:"public_ipv6_address"`
IPVersion int `json:"ip_version"`
PrivateIpAddress string `json:"private_ip_address"`
PortId string `json:"port_id"`
TenantId string `json:"tenant_id"`
CreateTime string `json:"create_time"`
BandwidthId string `json:"bandwidth_id"`
BandwidthSize int `json:"bandwidth_size"`
BandwidthName string `json:"bandwidth_name"`
Alias string `json:"alias"`
EnterpriseProjectId string `json:"enterprise_project_id"`
PublicBorderGroup string `json:"public_border_group"`
Tags []string `json:"tags"`
}
func ExtractPublicIPs ¶
func ExtractPublicIPs(page pagination.NewPage) ([]PublicIP, error)
type PublicIPCreateResp ¶
type PublicIPCreateResp = PublicIP
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*PublicIPCreateResp, error)
type PublicIPPage ¶
type PublicIPPage struct {
pagination.NewPageResult
}
func (PublicIPPage) NewIsEmpty ¶ added in v0.9.9
func (p PublicIPPage) NewIsEmpty() (bool, error)
func (PublicIPPage) NewNextPageURL ¶ added in v0.9.9
func (p PublicIPPage) NewNextPageURL() (string, error)
type PublicIPRequest ¶
type PublicIPUpdateResp ¶
type PublicIPUpdateResp = PublicIP
func Update ¶
func Update(client *golangsdk.ServiceClient, id string, opts UpdateOpts) (*PublicIPUpdateResp, error)
type UpdateOpts ¶
Click to show internal directories.
Click to hide internal directories.