cloudvendor

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinPageSize requests.Integer = "1"
	MaxPageSize requests.Integer = "100"
)

Variables

This section is empty.

Functions

func Register

func Register(vendorName string, client VendorClient)

Register 注册云厂商客户端

Types

type VendorClient

type VendorClient interface {
	// NewVendorClient 创建云厂商客户端
	NewVendorClient(secretID, secretKey string) VendorClient
	// GetRegions 获取地域列表
	GetRegions() ([]*cmdb.Region, error)
	// GetInstances 获取实例列表
	GetInstances(region string) ([]cmdb.VirtualMachine, error)
}

func GetVendorClient

func GetVendorClient(conf *cmdb.CloudPlatform) (VendorClient, error)

GetVendorClient 获取云厂商客户端

Jump to

Keyboard shortcuts

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