Documentation
¶
Index ¶
- func Delete(client *golangsdk.ServiceClient, id string) (err error)
- func DisableEIP(client *golangsdk.ServiceClient, id string) error
- func EnableEIP(client *golangsdk.ServiceClient, opts EipOpts) error
- func UpdateEIP(client *golangsdk.ServiceClient, opts EipOpts) error
- type CreateOpts
- type EipOpts
- type EndpointService
- type Gateway
- type GatewayPage
- type GatewayResp
- type IpDetail
- type ListOpts
- type NodeIps
- type Progress
- type UpdateOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableEIP ¶
func DisableEIP(client *golangsdk.ServiceClient, id string) error
Types ¶
type CreateOpts ¶
type CreateOpts struct { Description string `json:"description,omitempty"` MaintainBegin string `json:"maintain_begin,omitempty"` MaintainEnd string `json:"maintain_end,omitempty"` InstanceName string `json:"instance_name" required:"true"` InstanceID string `json:"instance_id,omitempty"` SpecID string `json:"spec_id" required:"true"` VpcID string `json:"vpc_id" required:"true"` SubnetID string `json:"subnet_id" required:"true"` SecGroupID string `json:"security_group_id" required:"true"` AvailableZoneIDs []string `json:"available_zone_ids" required:"true"` BandwidthSize *int `json:"bandwidth_size,omitempty"` BandwidthCharging string `json:"bandwidth_charging_mode,omitempty"` LoadbalancerProvider string `json:"loadbalancer_provider" required:"true"` Tags []tags.ResourceTag `json:"tags"` VpcepServiceName string `json:"vpcep_service_name,omitempty"` IngressBandwidthSize *int `json:"ingress_bandwidth_size,omitempty"` IngressBandwidthChargingMode string `json:"ingress_bandwidth_charging_mode"` }
type EndpointService ¶
type Gateway ¶
type Gateway struct { ID string `json:"id"` ProjectID string `json:"project_id"` InstanceName string `json:"instance_name"` Status string `json:"status"` InstanceStatus int `json:"instance_status"` Type string `json:"type"` Spec string `json:"spec"` CreateTime int64 `json:"create_time"` EipAddress string `json:"eip_address"` ChargingMode int `json:"charging_mode"` LoadbalancerProvider string `json:"loadbalancer_provider"` Description string `json:"description"` VpcID string `json:"vpc_id"` SubnetID string `json:"subnet_id"` SecurityGroupID string `json:"security_group_id"` MaintainBegin string `json:"maintain_begin"` MaintainEnd string `json:"maintain_end"` IngressIp string `json:"ingress_ip"` UserID string `json:"user_id"` NatEipAddress string `json:"nat_eip_address"` BandwidthSize int `json:"bandwidth_size"` BandwidthChargingMode string `json:"bandwidth_charging_mode"` AvailableZoneIDs string `json:"available_zone_ids"` InstanceVersion string `json:"instance_version"` VirsubnetID string `json:"virsubnet_id"` RomaEipAddress string `json:"roma_eip_address"` // Listeners *Listeners `json:"listeners"` SupportedFeatures []string `json:"supported_features"` EndpointService *EndpointService `json:"endpoint_service"` EndpointServices []EndpointService `json:"endpoint_services"` NodeIps *NodeIps `json:"node_ips"` PublicIps []IpDetail `json:"publicips"` PrivateIps []IpDetail `json:"privateips"` IsReleasable *bool `json:"is_releasable"` IngressBandwidthChargingMode string `json:"ingress_bandwidth_charging_mode"` }
func ExtractGateways ¶
func ExtractGateways(r pagination.NewPage) ([]Gateway, error)
func Update ¶
func Update(client *golangsdk.ServiceClient, opts UpdateOpts) (*Gateway, error)
type GatewayPage ¶
type GatewayPage struct {
pagination.NewSinglePageBase
}
type GatewayResp ¶
type GatewayResp struct { InstanceID string `json:"instance_id"` Message string `json:"message"` JobID string `json:"job_id"` }
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*GatewayResp, error)
type Progress ¶
type Progress struct { Progress int `json:"progress"` Status string `json:"status"` ErrorCode string `json:"error_code"` ErrorMsg string `json:"error_msg"` StartTime int64 `json:"start_time"` EndTime int64 `json:"end_time"` }
func QueryProgress ¶
type UpdateOpts ¶
type UpdateOpts struct { ID string `json:"-"` Description string `json:"description,omitempty"` MaintainBegin string `json:"maintain_begin,omitempty"` MaintainEnd string `json:"maintain_end,omitempty"` InstanceName string `json:"instance_name,omitempty"` SecGroupID string `json:"security_group_id,omitempty"` VpcepServiceName string `json:"vpcep_service_name,omitempty"` }
Click to show internal directories.
Click to hide internal directories.