Documentation ¶
Index ¶
Constants ¶
View Source
const ( QCLOUD_SECRETID = "QCLOUD_SECRETID" QCLOUD_SECRETKEY = "QCLOUD_SECRETKEY" )
View Source
const ( LvlError loggerLevel = iota LvlWarn LvlInfo LvlDebug )
View Source
const (
PARAM_ERROR = internal_sdk_error_code_base + iota
)
Variables ¶
This section is empty.
Functions ¶
func NewParamError ¶
Types ¶
type CbsService ¶
type CbsService interface {
DescribeCbsStorages(diskType *string, payMode *string) (*DescribeCbsStoragesResponse, error)
}
func NewCbsService ¶
func NewCbsService(engine QcloudEngine) CbsService
type CvmService ¶
type CvmService interface {
DescribeInstances(status *int, zoneId *int) (*DescribeInstancesResponse, error)
}
func NewCvmService ¶
func NewCvmService(engine QcloudEngine) CvmService
type Logger ¶
type QcloudEngine ¶
type QcloudEngine interface { WithRegion(region string) QcloudEngine WithSecret(secretId, secretKey string) QcloudEngine WithLogger(logger Logger) QcloudEngine DoRequest(componetUrl, action string, content map[string]interface{}, rspObj interface{}) error GetLogger() Logger }
func NewQcloudEngine ¶
func NewQcloudEngine() QcloudEngine
Click to show internal directories.
Click to hide internal directories.