Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) CreateHaVip(args *CreateHaVipArgs) (*CreateHavipResult, error)
- func (c *Client) DeleteHaVip(args *DeleteHaVipArgs) error
- func (c *Client) GetHaVipDetail(haVipId string) (*HaVip, error)
- func (c *Client) HaVipAttachInstance(args *HaVipInstanceArgs) error
- func (c *Client) HaVipBindPublicIp(args *HaVipBindPublicIpArgs) error
- func (c *Client) HaVipDetachInstance(args *HaVipInstanceArgs) error
- func (c *Client) HaVipUnbindPublicIp(args *HaVipUnbindPublicIpArgs) error
- func (c *Client) ListHaVip(args *ListHaVipArgs) (*ListHaVipResult, error)
- func (c *Client) UpdateHaVip(args *UpdateHaVipArgs) error
- type CreateHaVipArgs
- type CreateHavipResult
- type DeleteHaVipArgs
- type HaVip
- type HaVipBindPublicIpArgs
- type HaVipBindedInstance
- type HaVipInstanceArgs
- type HaVipUnbindPublicIpArgs
- type ListHaVipArgs
- type ListHaVipResult
- type UpdateHaVipArgs
Constants ¶
View Source
const ( URI_PREFIX = bce.URI_PREFIX + "v1" DEFAULT_HAVIP = "bcc." + bce.DEFAULT_REGION + ".baidubce.com" REQUEST_HAVIP_URL = "/havip" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client of ESG service is a kind of BceClient, so derived from BceClient
func (*Client) CreateHaVip ¶
func (c *Client) CreateHaVip(args *CreateHaVipArgs) (*CreateHavipResult, error)
CreateHaVip - create an havip with the specific parameters
PARAMS:
- args: the arguments to create an havip
RETURNS:
- *CreateHavipResult: the result of create havip
- error: nil if success otherwise the specific error
func (*Client) DeleteHaVip ¶
func (c *Client) DeleteHaVip(args *DeleteHaVipArgs) error
DeleteHaVip - delete an havip
PARAMS:
- DeleteHaVipArgs: the arguments to delete an havip
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) GetHaVipDetail ¶
GetHaVipDetail - get the havip detail
PARAMS:
- haVipId: the specific haVipId
RETURNS:
- *HaVip: the havip
- error: nil if success otherwise the specific error
func (*Client) HaVipAttachInstance ¶
func (c *Client) HaVipAttachInstance(args *HaVipInstanceArgs) error
HaVipAttachInstance - havip attach instance
PARAMS:
- args: the arguments to attach instance
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) HaVipBindPublicIp ¶
func (c *Client) HaVipBindPublicIp(args *HaVipBindPublicIpArgs) error
HaVipBindPublicIp - havip bind public ip
PARAMS:
- args: the arguments to bind public ip
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) HaVipDetachInstance ¶
func (c *Client) HaVipDetachInstance(args *HaVipInstanceArgs) error
HaVipDetachInstance - havip detach instance
PARAMS:
- args: the arguments to detach instance
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) HaVipUnbindPublicIp ¶
func (c *Client) HaVipUnbindPublicIp(args *HaVipUnbindPublicIpArgs) error
HaVipUnbindPublicIp - havip unbind public ip
PARAMS:
- args: the arguments to unbind public ip
RETURNS:
- error: nil if success otherwise the specific error
func (*Client) ListHaVip ¶
func (c *Client) ListHaVip(args *ListHaVipArgs) (*ListHaVipResult, error)
ListHaVip - list all havip with the specific parameters
PARAMS:
- args: the arguments to list all havip
RETURNS:
- *ListHaVipResult: the result of list all havip
- error: nil if success otherwise the specific error
func (*Client) UpdateHaVip ¶
func (c *Client) UpdateHaVip(args *UpdateHaVipArgs) error
UpdateHaVip - update an havip
PARAMS:
- UpdateHaVipArgs: the arguments to update an havip
RETURNS:
- error: nil if success otherwise the specific error
type CreateHaVipArgs ¶
type CreateHavipResult ¶
type CreateHavipResult struct {
HaVipId string `json:"haVipId"`
}
type DeleteHaVipArgs ¶
type HaVip ¶
type HaVip struct { HaVipId string `json:"haVipId"` Name string `json:"name"` Description string `json:"description"` VpcId string `json:"vpcId"` SubnetId string `json:"subnetId"` Status string `json:"status"` PrivateIpAddress string `json:"privateIpAddress"` PublicIpAddress string `json:"publicIpAddress,omitempty"` BindedInstances []HaVipBindedInstance `json:"bindedInstances,omitempty"` CreatedTime string `json:"createdTime"` }
type HaVipBindPublicIpArgs ¶
type HaVipBindedInstance ¶
type HaVipInstanceArgs ¶
type HaVipUnbindPublicIpArgs ¶
type ListHaVipArgs ¶
type ListHaVipResult ¶
Click to show internal directories.
Click to hide internal directories.