Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultInternetChargeType = "PayByTraffic"
DefaultInternetChargeType is used for EIP
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory interface { // NewVPC creates a new VPC client from the given credentials and region. NewVPC(region, accessKeyID, accessKeySecret string) (VPC, error) }
Factory is the factory to instantiate Alicloud clients.
type FactoryFunc ¶
type FactoryFunc func(region, accessKeyID, accessKeySecret string) (*alicloudvpc.Client, error)
FactoryFunc is a function that implements the Factory interface. Used for consuming the `alicloudvpc.NewClientWithAccessKey` function.
type VPC ¶
type VPC interface { // DescribeVpcs describes the VPCs for the request. DescribeVpcs(req *alicloudvpc.DescribeVpcsRequest) (*alicloudvpc.DescribeVpcsResponse, error) // DescribeNatGateways describes the NAT gateways for the request. DescribeNatGateways(req *alicloudvpc.DescribeNatGatewaysRequest) (*alicloudvpc.DescribeNatGatewaysResponse, error) // DescribeEipAddresses describes the EIP addresses for the request. DescribeEipAddresses(req *alicloudvpc.DescribeEipAddressesRequest) (*alicloudvpc.DescribeEipAddressesResponse, error) }
VPC is the interface to the Alicloud VPC service.
Click to show internal directories.
Click to hide internal directories.