Documentation ¶
Index ¶
- Constants
- type Balance
- type QingCloudClientConfig
- type SQingCloudClient
- func (self *SQingCloudClient) Do(req *http.Request) (*http.Response, error)
- func (self *SQingCloudClient) GetAccountId() string
- func (self *SQingCloudClient) GetCapabilities() []string
- func (self *SQingCloudClient) GetRegion(id string) (*SRegion, error)
- func (self *SQingCloudClient) GetRegions() []SRegion
- func (self *SQingCloudClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
- func (self *SQingCloudClient) QueryBalance() (*Balance, error)
- type SRegion
- func (self *SRegion) CreateEIP(opts *cloudprovider.SEip) (cloudprovider.ICloudEIP, error)
- func (region *SRegion) CreateISecurityGroup(conf *cloudprovider.SecurityGroupCreateInput) (cloudprovider.ICloudSecurityGroup, error)
- func (self *SRegion) CreateIVpc(opts *cloudprovider.VpcCreateOptions) (cloudprovider.ICloudVpc, error)
- func (region *SRegion) GetCapabilities() []string
- func (self *SRegion) GetClient() *SQingCloudClient
- func (self *SRegion) GetCloudEnv() string
- func (self *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo
- func (self *SRegion) GetGlobalId() string
- func (self *SRegion) GetI18n() cloudprovider.SModelI18nTable
- func (self *SRegion) GetIEipById(eipId string) (cloudprovider.ICloudEIP, error)
- func (self *SRegion) GetIEips() ([]cloudprovider.ICloudEIP, error)
- func (region *SRegion) GetISecurityGroupById(secgroupId string) (cloudprovider.ICloudSecurityGroup, error)
- func (self *SRegion) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)
- func (self *SRegion) GetIVpcs() ([]cloudprovider.ICloudVpc, error)
- func (self *SRegion) GetIZoneById(id string) (cloudprovider.ICloudZone, error)
- func (self *SRegion) GetIZones() ([]cloudprovider.ICloudZone, error)
- func (self *SRegion) GetId() string
- func (self *SRegion) GetName() string
- func (self *SRegion) GetProvider() string
- func (self *SRegion) GetStatus() string
- func (self *SRegion) GetZones() ([]SZone, error)
- type SZone
Constants ¶
View Source
const ( CLOUD_PROVIDER_QINGCLOUD_CN = "青云" QINGCLOUD_DEFAULT_REGION = "pek3" ISO8601 = "2006-01-02T15:04:05Z" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QingCloudClientConfig ¶
type QingCloudClientConfig struct {
// contains filtered or unexported fields
}
func NewQingCloudClientConfig ¶
func NewQingCloudClientConfig(accessKeyId, accessKeySecret string) *QingCloudClientConfig
func (*QingCloudClientConfig) CloudproviderConfig ¶
func (self *QingCloudClientConfig) CloudproviderConfig(cpcfg cloudprovider.ProviderConfig) *QingCloudClientConfig
func (*QingCloudClientConfig) Debug ¶
func (self *QingCloudClientConfig) Debug(debug bool) *QingCloudClientConfig
type SQingCloudClient ¶
type SQingCloudClient struct { *QingCloudClientConfig // contains filtered or unexported fields }
func NewQingCloudClient ¶
func NewQingCloudClient(cfg *QingCloudClientConfig) (*SQingCloudClient, error)
func (*SQingCloudClient) GetAccountId ¶
func (self *SQingCloudClient) GetAccountId() string
func (*SQingCloudClient) GetCapabilities ¶
func (self *SQingCloudClient) GetCapabilities() []string
func (*SQingCloudClient) GetRegion ¶
func (self *SQingCloudClient) GetRegion(id string) (*SRegion, error)
func (*SQingCloudClient) GetRegions ¶
func (self *SQingCloudClient) GetRegions() []SRegion
func (*SQingCloudClient) GetSubAccounts ¶
func (self *SQingCloudClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
func (*SQingCloudClient) QueryBalance ¶
func (self *SQingCloudClient) QueryBalance() (*Balance, error)
type SRegion ¶
type SRegion struct { multicloud.SRegion multicloud.SNoObjectStorageRegion multicloud.SNoLbRegion Region string RegionName string // contains filtered or unexported fields }
func (*SRegion) CreateEIP ¶
func (self *SRegion) CreateEIP(opts *cloudprovider.SEip) (cloudprovider.ICloudEIP, error)
func (*SRegion) CreateISecurityGroup ¶
func (region *SRegion) CreateISecurityGroup(conf *cloudprovider.SecurityGroupCreateInput) (cloudprovider.ICloudSecurityGroup, error)
func (*SRegion) CreateIVpc ¶
func (self *SRegion) CreateIVpc(opts *cloudprovider.VpcCreateOptions) (cloudprovider.ICloudVpc, error)
func (*SRegion) GetCapabilities ¶
func (*SRegion) GetClient ¶
func (self *SRegion) GetClient() *SQingCloudClient
func (*SRegion) GetCloudEnv ¶
func (*SRegion) GetGeographicInfo ¶
func (self *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo
func (*SRegion) GetGlobalId ¶
func (*SRegion) GetI18n ¶
func (self *SRegion) GetI18n() cloudprovider.SModelI18nTable
func (*SRegion) GetIEipById ¶
func (self *SRegion) GetIEipById(eipId string) (cloudprovider.ICloudEIP, error)
func (*SRegion) GetISecurityGroupById ¶
func (region *SRegion) GetISecurityGroupById(secgroupId string) (cloudprovider.ICloudSecurityGroup, error)
func (*SRegion) GetIVpcById ¶
func (self *SRegion) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)
func (*SRegion) GetIZoneById ¶
func (self *SRegion) GetIZoneById(id string) (cloudprovider.ICloudZone, error)
func (*SRegion) GetIZones ¶
func (self *SRegion) GetIZones() ([]cloudprovider.ICloudZone, error)
func (*SRegion) GetProvider ¶
Click to show internal directories.
Click to hide internal directories.