Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VendorClient ¶
type VendorClient interface { // NewVendorClient 创建云厂商客户端 NewVendorClient(secretID, secretKey string) VendorClient // GetRegions 获取地域列表 GetRegions() ([]*metadata.Region, error) // GetVpcs 获取vpc列表 GetVpcs(region string, opt *ccom.VpcOpt) (*metadata.VpcsInfo, error) // GetInstances 获取实例列表 GetInstances(region string, opt *ccom.InstanceOpt) (*metadata.InstancesInfo, error) // GetInstancesTotalCnt 获取实例总个数 GetInstancesTotalCnt(region string, opt *ccom.InstanceOpt) (int64, error) }
func GetVendorClient ¶
func GetVendorClient(conf metadata.CloudAccountConf) (VendorClient, error)
GetVendorClient 获取云厂商客户端
Click to show internal directories.
Click to hide internal directories.