Documentation ¶
Index ¶
- type SObjectStoreProvider
- func (self *SObjectStoreProvider) GetAccountId() string
- func (self *SObjectStoreProvider) GetBalance() (float64, string, error)
- func (self *SObjectStoreProvider) GetBucketCannedAcls(regionId string) []string
- func (self *SObjectStoreProvider) GetCapabilities() []string
- func (self *SObjectStoreProvider) GetIProjects() ([]cloudprovider.ICloudProject, error)
- func (self *SObjectStoreProvider) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)
- func (self *SObjectStoreProvider) GetIRegions() []cloudprovider.ICloudRegion
- func (self *SObjectStoreProvider) GetObjectCannedAcls(regionId string) []string
- func (self *SObjectStoreProvider) GetOnPremiseIRegion() (cloudprovider.ICloudRegion, error)
- func (self *SObjectStoreProvider) GetStorageClasses(regionId string) []string
- func (self *SObjectStoreProvider) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
- func (self *SObjectStoreProvider) GetSysInfo() (jsonutils.JSONObject, error)
- func (self *SObjectStoreProvider) GetVersion() string
- type SObjectStoreProviderFactory
- func (self *SObjectStoreProviderFactory) GetClientRC(info cloudprovider.SProviderInfo) (map[string]string, error)
- func (self *SObjectStoreProviderFactory) GetId() string
- func (self *SObjectStoreProviderFactory) GetName() string
- func (self *SObjectStoreProviderFactory) GetProvider(cfg cloudprovider.ProviderConfig) (cloudprovider.ICloudProvider, error)
- func (self *SObjectStoreProviderFactory) ValidateCreateCloudaccountData(ctx context.Context, userCred mcclient.TokenCredential, ...) (cloudprovider.SCloudaccount, error)
- func (self *SObjectStoreProviderFactory) ValidateUpdateCloudaccountCredential(ctx context.Context, userCred mcclient.TokenCredential, ...) (cloudprovider.SCloudaccount, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SObjectStoreProvider ¶
type SObjectStoreProvider struct { cloudprovider.SBaseProvider // contains filtered or unexported fields }
func NewObjectStoreProvider ¶
func NewObjectStoreProvider(factory cloudprovider.ICloudProviderFactory, client objectstore.IBucketProvider, acls []string) *SObjectStoreProvider
func (*SObjectStoreProvider) GetAccountId ¶
func (self *SObjectStoreProvider) GetAccountId() string
func (*SObjectStoreProvider) GetBalance ¶
func (self *SObjectStoreProvider) GetBalance() (float64, string, error)
func (*SObjectStoreProvider) GetBucketCannedAcls ¶
func (self *SObjectStoreProvider) GetBucketCannedAcls(regionId string) []string
func (*SObjectStoreProvider) GetCapabilities ¶
func (self *SObjectStoreProvider) GetCapabilities() []string
func (*SObjectStoreProvider) GetIProjects ¶
func (self *SObjectStoreProvider) GetIProjects() ([]cloudprovider.ICloudProject, error)
func (*SObjectStoreProvider) GetIRegionById ¶
func (self *SObjectStoreProvider) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)
func (*SObjectStoreProvider) GetIRegions ¶
func (self *SObjectStoreProvider) GetIRegions() []cloudprovider.ICloudRegion
func (*SObjectStoreProvider) GetObjectCannedAcls ¶
func (self *SObjectStoreProvider) GetObjectCannedAcls(regionId string) []string
func (*SObjectStoreProvider) GetOnPremiseIRegion ¶
func (self *SObjectStoreProvider) GetOnPremiseIRegion() (cloudprovider.ICloudRegion, error)
func (*SObjectStoreProvider) GetStorageClasses ¶
func (self *SObjectStoreProvider) GetStorageClasses(regionId string) []string
func (*SObjectStoreProvider) GetSubAccounts ¶
func (self *SObjectStoreProvider) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
func (*SObjectStoreProvider) GetSysInfo ¶
func (self *SObjectStoreProvider) GetSysInfo() (jsonutils.JSONObject, error)
func (*SObjectStoreProvider) GetVersion ¶
func (self *SObjectStoreProvider) GetVersion() string
type SObjectStoreProviderFactory ¶
type SObjectStoreProviderFactory struct {
cloudprovider.SPremiseBaseProviderFactory
}
func (*SObjectStoreProviderFactory) GetClientRC ¶
func (self *SObjectStoreProviderFactory) GetClientRC(info cloudprovider.SProviderInfo) (map[string]string, error)
func (*SObjectStoreProviderFactory) GetId ¶
func (self *SObjectStoreProviderFactory) GetId() string
func (*SObjectStoreProviderFactory) GetName ¶
func (self *SObjectStoreProviderFactory) GetName() string
func (*SObjectStoreProviderFactory) GetProvider ¶
func (self *SObjectStoreProviderFactory) GetProvider(cfg cloudprovider.ProviderConfig) (cloudprovider.ICloudProvider, error)
func (*SObjectStoreProviderFactory) ValidateCreateCloudaccountData ¶
func (self *SObjectStoreProviderFactory) ValidateCreateCloudaccountData(ctx context.Context, userCred mcclient.TokenCredential, input cloudprovider.SCloudaccountCredential) (cloudprovider.SCloudaccount, error)
func (*SObjectStoreProviderFactory) ValidateUpdateCloudaccountCredential ¶
func (self *SObjectStoreProviderFactory) ValidateUpdateCloudaccountCredential(ctx context.Context, userCred mcclient.TokenCredential, input cloudprovider.SCloudaccountCredential, cloudaccount string) (cloudprovider.SCloudaccount, error)
Click to show internal directories.
Click to hide internal directories.