Documentation ¶
Index ¶
- Constants
- type CashBalance
- type ChinaUnionClientConfig
- type SChinaUnionClient
- func (self *SChinaUnionClient) Do(req *http.Request) (*http.Response, error)
- func (self *SChinaUnionClient) GetAccountId() string
- func (self *SChinaUnionClient) GetCapabilities() []string
- func (self *SChinaUnionClient) GetRegion(id string) (*SRegion, error)
- func (self *SChinaUnionClient) GetRegions() ([]SRegion, error)
- func (self *SChinaUnionClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
- func (self *SChinaUnionClient) QueryBalance() (*CashBalance, 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() *SChinaUnionClient
- 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
Constants ¶
View Source
const ( CLOUD_PROVIDER_CUCLOUD_CN = "联通云" CUCLOUD_DEFAULT_REGION = "cn-langfang-2" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CashBalance ¶
type CashBalance struct {
CashBalance float64
}
type ChinaUnionClientConfig ¶
type ChinaUnionClientConfig struct {
// contains filtered or unexported fields
}
func NewChinaUnionClientConfig ¶
func NewChinaUnionClientConfig(accessKeyId, accessKeySecret string) *ChinaUnionClientConfig
func (*ChinaUnionClientConfig) CloudproviderConfig ¶
func (self *ChinaUnionClientConfig) CloudproviderConfig(cpcfg cloudprovider.ProviderConfig) *ChinaUnionClientConfig
func (*ChinaUnionClientConfig) Debug ¶
func (self *ChinaUnionClientConfig) Debug(debug bool) *ChinaUnionClientConfig
type SChinaUnionClient ¶
type SChinaUnionClient struct { *ChinaUnionClientConfig // contains filtered or unexported fields }
func NewChinaUnionClient ¶
func NewChinaUnionClient(cfg *ChinaUnionClientConfig) (*SChinaUnionClient, error)
func (*SChinaUnionClient) GetAccountId ¶
func (self *SChinaUnionClient) GetAccountId() string
func (*SChinaUnionClient) GetCapabilities ¶
func (self *SChinaUnionClient) GetCapabilities() []string
func (*SChinaUnionClient) GetRegion ¶
func (self *SChinaUnionClient) GetRegion(id string) (*SRegion, error)
func (*SChinaUnionClient) GetRegions ¶
func (self *SChinaUnionClient) GetRegions() ([]SRegion, error)
func (*SChinaUnionClient) GetSubAccounts ¶
func (self *SChinaUnionClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
func (*SChinaUnionClient) QueryBalance ¶
func (self *SChinaUnionClient) QueryBalance() (*CashBalance, error)
接口不可用
type SRegion ¶
type SRegion struct { multicloud.SRegion multicloud.SNoObjectStorageRegion multicloud.SNoLbRegion CloudRegionId string CloudRegionName string CloudRegionCode string Status 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() *SChinaUnionClient
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.