Documentation ¶
Index ¶
- Constants
- type BWDesc
- type Client
- func (client *Client) AllocateEIP(region, projectId string, arg *EIPAllocArg) (eIp *EipResp, err error)
- func (client *Client) AssociateEIP(region, projectId, elasticIPId string, arg *EIPAssocArg) error
- func (client *Client) Do(region, method, uri string, args interface{}) (respbytes []byte, err error)
- func (client *Client) ListSecurityGroups(region, projectId string, args *ListSecurityGroupsAttributeArgs) (*SecurityGroupsResponse, error)
- func (client *Client) ListSubnet(region, projectId, vpcId string) (snList *SubnetResponse, err error)
- type EIP
- type EIPAllocArg
- type EIPAssocArg
- type EipResp
- type ListSecurityGroupsAttributeArgs
- type PortDesc
- type PubIP
- type SecurityGroup
- type SecurityGroupsResponse
- type SubnetList
- type SubnetResponse
Constants ¶
View Source
const ( VPCDefaultEndpoint = "https://10.175.38.51" VPCVersion = "v1" VPCName = "vpcs" BasicDateFormat = "20060102T150405Z" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) AllocateEIP ¶
func (client *Client) AllocateEIP(region, projectId string, arg *EIPAllocArg) (eIp *EipResp, err error)
func (*Client) AssociateEIP ¶
func (client *Client) AssociateEIP(region, projectId, elasticIPId string, arg *EIPAssocArg) error
func (*Client) ListSecurityGroups ¶
func (client *Client) ListSecurityGroups(region, projectId string, args *ListSecurityGroupsAttributeArgs) (*SecurityGroupsResponse, error)
func (*Client) ListSubnet ¶
func (client *Client) ListSubnet(region, projectId, vpcId string) (snList *SubnetResponse, err error)
type EIPAllocArg ¶
type EIPAssocArg ¶
type EIPAssocArg struct {
Port PortDesc `json:"publicip"`
}
type SecurityGroup ¶
type SecurityGroupsResponse ¶
type SecurityGroupsResponse struct {
SecurityGroups []SecurityGroup `json:"security_groups"`
}
type SubnetList ¶
type SubnetList struct { Id string `json:"id"` Name string `json:"name"` Cidr string `json:"cidr"` Gateway_Ip string `json:"gateway_ip"` Dhcp_En bool `json:"dhcp_enable"` Primary_Dns string `json:"primary_dns"` Second_Dns string `json:"secondary_dns"` Avail_Zone string `json:"availability_zone"` Vpc_Id string `json:"vpc_id"` Status string `json:"status"` }
type SubnetResponse ¶
type SubnetResponse struct {
Subnets []SubnetList `json:"subnets"`
}
Click to show internal directories.
Click to hide internal directories.