alibabacloud

package
v1.4.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBaseDomain

func GetBaseDomain() (string, error)

GetBaseDomain returns a base domain chosen from among the account's domains.

func Platform

func Platform() (*alibabacloud.Platform, error)

Platform collects AlibabaCloud-specific configuration.

func Validate

func Validate(client *Client, ic *types.InstallConfig) error

Validate executes platform-specific validation.

func ValidateForProvisioning

func ValidateForProvisioning(client *Client, ic *types.InstallConfig, metadata *Metadata) error

ValidateForProvisioning validates if the install config is valid for provisioning the cluster.

Types

type Client

type Client struct {
	sdk.Client
	RegionID        string
	AccessKeyID     string
	AccessKeySecret string
}

Client makes calls to the Alibaba Cloud API.

func NewClient

func NewClient(regionID string) (client *Client, err error)

NewClient initializes a client with a session.

func (*Client) DescribeAvailableInstanceType

func (client *Client) DescribeAvailableInstanceType(zoneID string, instanceType string) (response *ecs.DescribeAvailableResourceResponse, err error)

DescribeAvailableInstanceType query available instance type of ECS.

func (*Client) DescribeAvailableResource

func (client *Client) DescribeAvailableResource(destinationResource string) (response *ecs.DescribeAvailableResourceResponse, err error)

DescribeAvailableResource query available resources.

func (*Client) DescribeAvailableZoneByInstanceType

func (client *Client) DescribeAvailableZoneByInstanceType(instanceType string) (response *ecs.DescribeAvailableResourceResponse, err error)

DescribeAvailableZoneByInstanceType queries available zone by instance type of ECS.

func (*Client) DescribeRegions

func (client *Client) DescribeRegions() (response *ecs.DescribeRegionsResponse, err error)

DescribeRegions gets the list of regions.

func (*Client) GetAvailableZonesByInstanceType

func (client *Client) GetAvailableZonesByInstanceType(instanceType string) ([]string, error)

GetAvailableZonesByInstanceType returns a list of available zones with the specified instance type is available and stock

func (*Client) GetOSSObjectSignURL

func (client *Client) GetOSSObjectSignURL(bucketName string, objectName string) (signedURL string, err error)

GetOSSObjectSignURL returns a presigned URL for a OSS object

func (*Client) ListDNSDomain

func (client *Client) ListDNSDomain() (response *alidns.DescribeDomainsResponse, err error)

ListDNSDomain get the list of domains.

func (*Client) ListEnhanhcedNatGatewayAvailableZones

func (client *Client) ListEnhanhcedNatGatewayAvailableZones() (response *vpc.ListEnhanhcedNatGatewayAvailableZonesResponse, err error)

ListEnhanhcedNatGatewayAvailableZones query available zone for enhanhced NAT gateway.

func (*Client) ListPrivateZoneRegions

func (client *Client) ListPrivateZoneRegions() (response *pvtz.DescribeRegionsResponse, err error)

ListPrivateZoneRegions gets the list of regions for privatzone.

func (*Client) ListPrivateZones

func (client *Client) ListPrivateZones(zoneName string, queryVpcID string) (response *pvtz.DescribeZonesResponse, err error)

ListPrivateZones gets the list of privatzones.

func (*Client) ListPrivateZonesByName

func (client *Client) ListPrivateZonesByName(zoneName string) (response *pvtz.DescribeZonesResponse, err error)

ListPrivateZonesByName gets the list of privatezones with the specified name.

func (*Client) ListPrivateZonesByVPC

func (client *Client) ListPrivateZonesByVPC(queryVpcID string) (response *pvtz.DescribeZonesResponse, err error)

ListPrivateZonesByVPC gets the list of privatezones attached to the specified VPC.

func (*Client) ListResourceGroups

func (client *Client) ListResourceGroups(resourceGroupID string) (response *resourcemanager.ListResourceGroupsResponse, err error)

ListResourceGroups gets the list of resource groups.

func (*Client) ListVSwitches

func (client *Client) ListVSwitches(vswitchID string) (response *vpc.DescribeVSwitchesResponse, err error)

ListVSwitches gets the list of VSwitches.

func (*Client) ListVpcs

func (client *Client) ListVpcs(vpcID string) (response *vpc.DescribeVpcsResponse, err error)

ListVpcs gets the list of VPCs.

type Metadata

type Metadata struct {
	VSwitchIDs []string
	Region     string `json:"region,omitempty"`
	// contains filtered or unexported fields
}

Metadata holds additional metadata for InstallConfig resources that does not need to be user-supplied (e.g. because it can be retrieved from external APIs).

func NewMetadata

func NewMetadata(region string, vswitchIDs []string) *Metadata

NewMetadata initializes a new Metadata object.

func (*Metadata) Client

func (m *Metadata) Client() (*Client, error)

Client returns a client used for making API calls to Alibaba Cloud services.

func (*Metadata) VSwitchMaps

func (m *Metadata) VSwitchMaps() (vswitchMaps map[string]string, err error)

VSwitchMaps retrieves VSwitch and availability zone metadata indexed by VSwitch ID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL