baidu

package
v0.0.0-...-3235d85 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLOUD_PROVIDER_BAIDU_CN = "百度云"
	BAIDU_DEFAULT_REGION    = "bj"
	ISO8601                 = "2006-01-02T15:04:05Z"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaiduClientConfig

type BaiduClientConfig struct {
	// contains filtered or unexported fields
}

func NewBaiduClientConfig

func NewBaiduClientConfig(accessKeyId, accessKeySecret string) *BaiduClientConfig

func (*BaiduClientConfig) CloudproviderConfig

func (self *BaiduClientConfig) CloudproviderConfig(cpcfg cloudprovider.ProviderConfig) *BaiduClientConfig

func (*BaiduClientConfig) Debug

func (self *BaiduClientConfig) Debug(debug bool) *BaiduClientConfig

type CashBalance

type CashBalance struct {
	CashBalance float64
}

type SBaiduClient

type SBaiduClient struct {
	*BaiduClientConfig
	// contains filtered or unexported fields
}

func NewBaiduClient

func NewBaiduClient(cfg *BaiduClientConfig) (*SBaiduClient, error)

func (*SBaiduClient) Do

func (self *SBaiduClient) Do(req *http.Request) (*http.Response, error)

func (*SBaiduClient) GetAccountId

func (self *SBaiduClient) GetAccountId() string

func (*SBaiduClient) GetCapabilities

func (self *SBaiduClient) GetCapabilities() []string

func (*SBaiduClient) GetRegion

func (self *SBaiduClient) GetRegion(id string) (*SRegion, error)

func (*SBaiduClient) GetRegions

func (self *SBaiduClient) GetRegions() []SRegion

func (*SBaiduClient) GetSubAccounts

func (self *SBaiduClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)

func (*SBaiduClient) QueryBalance

func (self *SBaiduClient) QueryBalance() (*CashBalance, 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 (*SRegion) CreateIVpc

func (*SRegion) GetCapabilities

func (region *SRegion) GetCapabilities() []string

func (*SRegion) GetClient

func (self *SRegion) GetClient() *SBaiduClient

func (*SRegion) GetCloudEnv

func (self *SRegion) GetCloudEnv() string

func (*SRegion) GetGeographicInfo

func (self *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo

func (*SRegion) GetGlobalId

func (self *SRegion) GetGlobalId() string

func (*SRegion) GetI18n

func (self *SRegion) GetI18n() cloudprovider.SModelI18nTable

func (*SRegion) GetIEipById

func (self *SRegion) GetIEipById(eipId string) (cloudprovider.ICloudEIP, error)

func (*SRegion) GetIEips

func (self *SRegion) GetIEips() ([]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) GetIVpcs

func (self *SRegion) GetIVpcs() ([]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) GetId

func (self *SRegion) GetId() string

func (*SRegion) GetName

func (self *SRegion) GetName() string

func (*SRegion) GetProvider

func (self *SRegion) GetProvider() string

func (*SRegion) GetStatus

func (self *SRegion) GetStatus() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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