Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultInternetChargeType = "PayByTraffic"
DefaultInternetChargeType is used for EIP
Variables ¶
This section is empty.
Functions ¶
func ComputeStorageEndpoint ¶
ComputeStorageEndpoint computes the OSS storage endpoint based on the given region.
Types ¶
type ClientFactory ¶
type ClientFactory interface { NewECSClient(region, accessKeyID, accessKeySecret string) (ECS, error) NewSTSClient(region, accessKeyID, accessKeySecret string) (STS, error) NewSLBClient(region, accessKeyID, accessKeySecret string) (SLB, error) NewVPCClient(region, accessKeyID, accessKeySecret string) (VPC, error) NewRAMClient(region, accessKeyID, accessKeySecret string) (RAM, error) NewStorageClientFromSecretRef(ctx context.Context, client client.Client, secretRef *corev1.SecretReference, region string) (Storage, error) }
ClientFactory is the new factory to instantiate Alicloud clients.
func NewClientFactory ¶
func NewClientFactory() ClientFactory
NewClientFactory creates a new clientFactory instance that can be used to instantiate Alicloud clients
type RAM ¶ added in v1.21.0
type RAM interface { CreateServiceLinkedRole(regionID, serviceName string) error GetServiceLinkedRole(roleName string) (*ram.Role, error) }
RAM is an interface which must be implemented by alicloud ram clients.
type SLB ¶
type SLB interface { GetLoadBalancerIDs(ctx context.Context, region string) ([]string, error) GetFirstVServerGroupName(ctx context.Context, region, loadBalancerID string) (string, error) DeleteLoadBalancer(ctx context.Context, region, loadBalancerID string) error SetLoadBalancerDeleteProtection(ctx context.Context, region, loadBalancerID string, protection bool) error }
SLB is an interface which must be implemented by alicloud slb clients.
type Storage ¶
type Storage interface { DeleteObjectsWithPrefix(ctx context.Context, bucketName, prefix string) error CreateBucketIfNotExists(ctx context.Context, bucketName string) error DeleteBucketIfExists(ctx context.Context, bucketName string) error }
Storage is an interface which must be implemented by alicloud oss storage clients.
type VPC ¶
type VPC interface { // DescribeVpcs describes the VPCs for the request. DescribeVpcs(req *vpc.DescribeVpcsRequest) (*vpc.DescribeVpcsResponse, error) // DescribeNatGateways describes the NAT gateways for the request. DescribeNatGateways(req *vpc.DescribeNatGatewaysRequest) (*vpc.DescribeNatGatewaysResponse, error) // DescribeEipAddresses describes the EIP addresses for the request. DescribeEipAddresses(req *vpc.DescribeEipAddressesRequest) (*vpc.DescribeEipAddressesResponse, error) }
VPC is an interface which must be implemented by alicloud vpc clients.
Click to show internal directories.
Click to hide internal directories.