Versions in this module Expand all Collapse all v0 v0.9.22 Sep 16, 2020 Changes in this version + const DEFAULT_ENDPOINT + const PAYMENT_TIMING_POSTPAID + const PAYMENT_TIMING_PREPAID + const REQUEST_VPN_URL + const URI_PREFIX + const VPN_STATUS_ACTIVE + const VPN_STATUS_BUILDING + const VPN_STATUS_CONFIGURING + const VPN_STATUS_UNCONFIGURED + type Billing struct + PaymentTiming PaymentTimingType + Reservation *Reservation + type BindEipArgs struct + ClientToken string + Eip string + type Client struct + func NewClient(ak, sk, endPoint string) (*Client, error) + func (c *Client) BindEip(vpnId string, args *BindEipArgs) error + func (c *Client) CreateVpnConn(args *CreateVpnConnArgs) (*CreateVpnConnResult, error) + func (c *Client) CreateVpnGateway(args *CreateVpnGatewayArgs) (*CreateVpnGatewayResult, error) + func (c *Client) DeleteVpn(vpnId, clientToken string) error + func (c *Client) DeleteVpnConn(vpnConnId, clientToken string) error + func (c *Client) DeleteVpnGateway(vpcId, clientToken string) error + func (c *Client) GetVpnGatewayDetail(vpnId string) (*VPN, error) + func (c *Client) ListVpnConn(vpnId string) (*ListVpnConnResult, error) + func (c *Client) ListVpnGateway(args *ListVpnGatewayArgs) (*ListVpnGatewayResult, error) + func (c *Client) RenewVpnGateway(vpnId string, args *RenewVpnGatewayArgs) error + func (c *Client) UnBindEip(vpnId, clientToken string) error + func (c *Client) UpdateVpnConn(args *UpdateVpnConnArgs) error + func (c *Client) UpdateVpnGateway(vpnId string, args *UpdateVpnGatewayArgs) error + type CreateIkeConfig struct + IkeAuthAlg string + IkeEncAlg string + IkeLifeTime int + IkeMode string + IkePfs string + IkeVersion string + type CreateIpsecConfig struct + IpsecAuthAlg string + IpsecEncAlg string + IpsecLifetime int + IpsecPfs string + type CreateVpnConnArgs struct + ClientToken string + CreateIkeConfig *CreateIkeConfig + CreateIpsecConfig *CreateIpsecConfig + Description string + LocalIp string + LocalSubnets []string + RemoteIp string + RemoteSubnets []string + SecretKey string + VpnConnName string + VpnId string + type CreateVpnConnResult struct + VpnConnId string + type CreateVpnGatewayArgs struct + Billing *Billing + ClientToken string + Description string + Eip string + VpcId string + VpnName string + type CreateVpnGatewayResult struct + VpnId string + type IkeConfig struct + IkeAuthAlg string + IkeEncAlg string + IkeLifeTime string + IkeMode string + IkePfs string + IkeVersion string + type IpsecConfig struct + IpsecAuthAlg string + IpsecEncAlg string + IpsecLifetime string + IpsecPfs string + type ListVpnConnResult struct + VpnConns []VpnConn + type ListVpnGatewayArgs struct + Eip string + Marker string + MaxKeys int + VpcId string + type ListVpnGatewayResult struct + IsTruncated bool + Marker string + MaxKeys int + NextMarker string + Vpns []VPN + type PaymentTimingType string + type PeerConnRoleType string + type RenewVpnGatewayArgs struct + Billing *Billing + ClientToken string + type Reservation struct + ReservationLength int + ReservationTimeUnit string + type UpdateVpnConnArgs struct + type UpdateVpnGatewayArgs struct + ClientToken string + Name string + type VPN struct + BandwidthInMbps int + Description string + Eip string + ExpiredTime string + Name string + ProductType string + Status VpnStatusType + VpcId string + VpnConnNum int + VpnConns []VpnConn + VpnId string + type VpnConn struct + CreatedTime string + Description string + HealthStatus string + IkeConfig IkeConfig + IpsecConfig IpsecConfig + LocalIp string + LocalSubnets []string + RemoteIp string + RemoteSubnets []string + SecretKey string + Status string + VpnConnId string + VpnConnName string + VpnId string + type VpnStatusType string