Documentation ¶
Index ¶
- Constants
- Variables
- type Billing
- type BindEipArgs
- type Client
- func (c *Client) BindEip(args *BindEipArgs) error
- func (c *Client) CreateEip(args *CreateEipArgs) (string, error)
- func (c *Client) DeleteEip(args *EipArgs) error
- func (c *Client) GetEips(args *GetEipsArgs) ([]Eip, error)
- func (c *Client) GetURL(version string, params map[string]string) string
- func (c *Client) PurchaseReservedEips()
- func (c *Client) ResizeEip(args *ResizeEipArgs) error
- func (c *Client) UnbindEip(args *EipArgs) error
- type Config
- type CreateEipArgs
- type CreateEipResponse
- type Eip
- type EipArgs
- type EipInstanceType
- type GetEipsArgs
- type GetEipsResponse
- type InstanceType
- type Reservation
- type ResizeEipArgs
Constants ¶
View Source
const ( PAYMENTTIMING_PREPAID string = "Prepaid" PAYMENTTIMING_POSTPAID string = "Postpaid" BILLINGMETHOD_BYTRAFFIC string = "ByTraffic" BILLINGMETHOD_BYBANDWIDTH string = "ByBandwidth" )
Variables ¶
View Source
var Endpoint = map[string]string{
"bj": "eip.bj.baidubce.com",
"gz": "eip.gz.baidubce.com",
}
Endpoint contains all endpoints of Baidu Cloud BCC.
Functions ¶
This section is empty.
Types ¶
type Billing ¶
type Billing struct { PaymentTiming string `json:"paymentTiming"` BillingMethod string `json:"billingMethod,omitempty"` Reservation *Reservation `json:"reservation"` }
type BindEipArgs ¶
type BindEipArgs struct { Ip string `json:"-"` InstanceType InstanceType `json:"instanceType"` InstanceId string `json:"instanceId"` }
type Client ¶
Client is the bos client implemention for Baidu Cloud BOS API.
func NewEIPClient ¶
func (*Client) BindEip ¶
func (c *Client) BindEip(args *BindEipArgs) error
func (*Client) ResizeEip ¶
func (c *Client) ResizeEip(args *ResizeEipArgs) error
type CreateEipArgs ¶
type CreateEipResponse ¶
type CreateEipResponse struct {
Ip string `json:"eip"`
}
type Eip ¶
type Eip struct { Name string `json:"name"` Eip string `json:"eip"` Status string `json:"status"` EipInstanceType EipInstanceType `json:"eipInstanceType"` InstanceType InstanceType `json:"instanceType"` InstanceId string `json:"instanceId"` BandwidthInMbps int `json:"bandwidthInMbps"` PaymentTiming string `json:"paymentTiming"` BillingMethod string `json:"billingMethod"` CreateTime string `json:"createTime"` ExpireTime string `json:"expireTime"` }
type EipInstanceType ¶
type EipInstanceType string
const ( NORMAL EipInstanceType = "normal" SHARED EipInstanceType = "shared" )
type GetEipsArgs ¶
type GetEipsArgs struct { Ip string `json:"-"` InstanceType InstanceType `json:"instanceType"` InstanceId string `json:"instanceId"` }
type GetEipsResponse ¶
type InstanceType ¶
type InstanceType string
const ( BCC InstanceType = "BCC" BLB InstanceType = "BLB" )
type Reservation ¶
type ResizeEipArgs ¶
Click to show internal directories.
Click to hide internal directories.