Versions in this module Expand all Collapse all v0 v0.9.7 Mar 18, 2020 Changes in this version + const ACL_RULE_ACTION_ALLOW + const ACL_RULE_ACTION_DENY + const ACL_RULE_DIRECTION_EGRESS + const ACL_RULE_DIRECTION_INGRESS + const ACL_RULE_PORT_ALL + const ACL_RULE_PROTOCOL_ICMP + const ACL_RULE_PROTOCOL_TCP + const ACL_RULE_PROTOCOL_UDP + const DEFAULT_ENDPOINT + const DNS_STATUS_CLOSE + const DNS_STATUS_CLOSING + const DNS_STATUS_OPEN + const DNS_STATUS_SYNCING + const DNS_STATUS_WAIT + const NAT_GATEWAY_SPEC_LARGE + const NAT_GATEWAY_SPEC_MEDIUM + const NAT_GATEWAY_SPEC_SMALL + const NAT_STATUS_ACTIVE + const NAT_STATUS_BUILDING + const NAT_STATUS_CONFIGURING + const NAT_STATUS_DELETED + const NAT_STATUS_DELETING + const NAT_STATUS_DOWN + const NAT_STATUS_STARTING + const NAT_STATUS_STOPPING + const NAT_STATUS_UNCONFIGURED + const NEXTHOP_TYPE_CUSTOM + const NEXTHOP_TYPE_NAT + const NEXTHOP_TYPE_VPN + const PAYMENT_TIMING_POSTPAID + const PAYMENT_TIMING_PREPAID + const PEERCONN_ROLE_ACCEPTOR + const PEERCONN_ROLE_INITIATOR + const PEERCONN_STATUS_ACTIVE + const PEERCONN_STATUS_CONSULTING + const PEERCONN_STATUS_CONSULT_FAILED + const PEERCONN_STATUS_CREATING + const PEERCONN_STATUS_DELETED + const PEERCONN_STATUS_DELETING + const PEERCONN_STATUS_DOWN + const PEERCONN_STATUS_ERROR + const PEERCONN_STATUS_EXPIRED + const PEERCONN_STATUS_STARTING + const PEERCONN_STATUS_STOPPING + const PEERCONN_STATUS_UPDATING + const REQUEST_ACL_URL + const REQUEST_NAT_URL + const REQUEST_PEERCONN_URL + const REQUEST_ROUTE_URL + const REQUEST_RULE_URL + const REQUEST_SUBNET_URL + const REQUEST_VPC_URL + const SUBNET_TYPE_BBC + const SUBNET_TYPE_BCC + const SUBNET_TYPE_BCCNAT + const URI_PREFIX + type AclEntry struct + AclRules []AclRule + SubnetCidr string + SubnetId string + SubnetName string + type AclRule struct + Action AclRuleActionType + Description string + DestinationIpAddress string + DestinationPort string + Direction AclRuleDirectionType + Id string + Position int + Protocol AclRuleProtocolType + SourceIpAddress string + SourcePort string + SubnetId string + type AclRuleActionType string + type AclRuleDirectionType string + type AclRulePortType string + type AclRuleProtocolType string + type AclRuleRequest struct + Action AclRuleActionType + Description string + DestinationIpAddress string + DestinationPort string + Direction AclRuleDirectionType + Position int + Protocol AclRuleProtocolType + SourceIpAddress string + SourcePort string + SubnetId string + type Billing struct + PaymentTiming PaymentTimingType + Reservation *Reservation + type BindEipsArgs struct + ClientToken string + Eips []string + type Client struct + func NewClient(ak, sk, endPoint string) (*Client, error) + func (c *Client) AcceptPeerConnApply(peerConnId, clientToken string) error + func (c *Client) BindEips(natId string, args *BindEipsArgs) error + func (c *Client) ClosePeerConnSyncDNS(peerConnId string, args *PeerConnSyncDNSArgs) error + func (c *Client) CreateAclRule(args *CreateAclRuleArgs) error + func (c *Client) CreateNatGateway(args *CreateNatGatewayArgs) (*CreateNatGatewayResult, error) + func (c *Client) CreatePeerConn(args *CreatePeerConnArgs) (*CreatePeerConnResult, error) + func (c *Client) CreateRouteRule(args *CreateRouteRuleArgs) (*CreateRouteRuleResult, error) + func (c *Client) CreateSubnet(args *CreateSubnetArgs) (*CreateSubnetResult, error) + func (c *Client) CreateVPC(args *CreateVPCArgs) (*CreateVPCResult, error) + func (c *Client) DeleteAclRule(aclRuleId, clientToken string) error + func (c *Client) DeleteNatGateway(natId, clientToken string) error + func (c *Client) DeletePeerConn(peerConnId, clientToken string) error + func (c *Client) DeleteRouteRule(routeRuleId, clientToken string) error + func (c *Client) DeleteSubnet(subnetId string, clientToken string) error + func (c *Client) DeleteVPC(vpcId, clientToken string) error + func (c *Client) GetNatGatewayDetail(natId string) (*NAT, error) + func (c *Client) GetPeerConnDetail(peerConnId string, role PeerConnRoleType) (*PeerConn, error) + func (c *Client) GetRouteTableDetail(routeTableId, vpcId string) (*GetRouteTableResult, error) + func (c *Client) GetSubnetDetail(subnetId string) (*GetSubnetDetailResult, error) + func (c *Client) GetVPCDetail(vpcId string) (*GetVPCDetailResult, error) + func (c *Client) ListAclEntrys(vpcId string) (*ListAclEntrysResult, error) + func (c *Client) ListAclRules(args *ListAclRulesArgs) (*ListAclRulesResult, error) + func (c *Client) ListNatGateway(args *ListNatGatewayArgs) (*ListNatGatewayResult, error) + func (c *Client) ListPeerConn(args *ListPeerConnsArgs) (*ListPeerConnsResult, error) + func (c *Client) ListSubnets(args *ListSubnetArgs) (*ListSubnetResult, error) + func (c *Client) ListVPC(args *ListVPCArgs) (*ListVPCResult, error) + func (c *Client) OpenPeerConnSyncDNS(peerConnId string, args *PeerConnSyncDNSArgs) error + func (c *Client) RejectPeerConnApply(peerConnId, clientToken string) error + func (c *Client) RenewNatGateway(natId string, args *RenewNatGatewayArgs) error + func (c *Client) RenewPeerConn(peerConnId string, args *RenewPeerConnArgs) error + func (c *Client) ResizePeerConn(peerConnId string, args *ResizePeerConnArgs) error + func (c *Client) UnBindEips(natId string, args *UnBindEipsArgs) error + func (c *Client) UpdateAclRule(aclRuleId string, args *UpdateAclRuleArgs) error + func (c *Client) UpdateNatGateway(natId string, args *UpdateNatGatewayArgs) error + func (c *Client) UpdatePeerConn(peerConnId string, args *UpdatePeerConnArgs) error + func (c *Client) UpdateSubnet(subnetId string, args *UpdateSubnetArgs) error + func (c *Client) UpdateVPC(vpcId string, updateVPCArgs *UpdateVPCArgs) error + type CreateAclRuleArgs struct + AclRules []AclRuleRequest + ClientToken string + type CreateNatGatewayArgs struct + Billing *Billing + ClientToken string + Eips []string + Name string + Spec NatGatewaySpecType + VpcId string + type CreateNatGatewayResult struct + NatId string + type CreatePeerConnArgs struct + BandwidthInMbps int + Billing *Billing + ClientToken string + Description string + LocalIfName string + LocalVpcId string + PeerAccountId string + PeerIfName string + PeerRegion string + PeerVpcId string + type CreatePeerConnResult struct + PeerConnId string + type CreateRouteRuleArgs struct + ClientToken string + Description string + DestinationAddress string + NexthopId string + NexthopType NexthopType + RouteTableId string + SourceAddress string + type CreateRouteRuleResult struct + RouteRuleId string + type CreateSubnetArgs struct + Cidr string + ClientToken string + Description string + Name string + SubnetType SubnetType + Tags []model.TagModel + VpcId string + ZoneName string + type CreateSubnetResult struct + SubnetId string + type CreateVPCArgs struct + Cidr string + ClientToken string + Description string + Name string + Tags []model.TagModel + type CreateVPCResult struct + VPCID string + type DnsStatusType string + type GetRouteTableResult struct + RouteRules []RouteRule + RouteTableId string + VpcId string + type GetSubnetDetailResult struct + Subnet Subnet + type GetVPCDetailResult struct + VPC ShowVPCModel + type ListAclEntrysResult struct + AclEntrys []AclEntry + VpcCidr string + VpcId string + VpcName string + type ListAclRulesArgs struct + Marker string + MaxKeys int + SubnetId string + type ListAclRulesResult struct + AclRules []AclRule + IsTruncated bool + Marker string + MaxKeys int + NextMarker string + type ListNatGatewayArgs struct + Ip string + Marker string + MaxKeys int + Name string + NatId string + VpcId string + type ListNatGatewayResult struct + IsTruncated bool + Marker string + MaxKeys int + Nats []NAT + NextMarker string + type ListPeerConnsArgs struct + Marker string + MaxKeys int + VpcId string + type ListPeerConnsResult struct + IsTruncated bool + Marker string + MaxKeys int + NextMarker string + PeerConns []PeerConn + type ListSubnetArgs struct + Marker string + MaxKeys int + SubnetType SubnetType + VpcId string + ZoneName string + type ListSubnetResult struct + IsTruncated bool + Marker string + MaxKeys int + NextMarker string + Subnets []Subnet + type ListVPCArgs struct + IsDefault string + Marker string + MaxKeys int + type ListVPCResult struct + IsTruncated bool + Marker string + MaxKeys int + NextMarker string + VPCs []VPC + type NAT struct + Eips []string + ExpiredTime string + Id string + Name string + PaymentTiming string + Spec string + Status NatStatusType + VpcId string + type NatGatewaySpecType string + type NatStatusType string + type NexthopType string + type PaymentTimingType string + type PeerConn struct + BandwidthInMbps int + CreatedTime string + Description string + DnsStatus DnsStatusType + ExpiredTime string + LocalIfId string + LocalIfName string + LocalRegion string + LocalVpcId string + PaymentTiming string + PeerAccountId string + PeerConnId string + PeerRegion string + PeerVpcId string + Role PeerConnRoleType + Status PeerConnStatusType + type PeerConnRoleType string + type PeerConnStatusType string + type PeerConnSyncDNSArgs struct + ClientToken string + Role PeerConnRoleType + type RenewNatGatewayArgs struct + Billing *Billing + ClientToken string + type RenewPeerConnArgs struct + Billing *Billing + ClientToken string + type Reservation struct + ReservationLength int + ReservationTimeUnit string + type ResizePeerConnArgs struct + ClientToken string + NewBandwidthInMbps int + type RouteRule struct + Description string + DestinationAddress string + NexthopId string + NexthopType NexthopType + RouteRuleId string + RouteTableId string + SourceAddress string + type ShowVPCModel struct + Cidr string + Description string + IsDefault bool + Name string + SecondaryCidr []string + Subnets []Subnet + Tags []model.TagModel + VPCId string + type Subnet struct + AvailableIp int + Cidr string + Description string + Name string + SubnetId string + SubnetType SubnetType + Tags []model.TagModel + VPCId string + ZoneName string + type SubnetType string + type UnBindEipsArgs struct + ClientToken string + Eips []string + type UpdateAclRuleArgs struct + Action AclRuleActionType + ClientToken string + Description string + DestinationIpAddress string + DestinationPort string + Position int + Protocol AclRuleProtocolType + SourceIpAddress string + SourcePort string + type UpdateNatGatewayArgs struct + ClientToken string + Name string + type UpdatePeerConnArgs struct + Description string + LocalIfId string + LocalIfName string + type UpdateSubnetArgs struct + ClientToken string + Description string + Name string + type UpdateVPCArgs struct + ClientToken string + Description string + Name string + type VPC struct + Cidr string + Description string + IsDefault bool + Name string + SecondaryCidr []string + Tags []model.TagModel + VPCID string