Documentation ¶
Index ¶
- type SApsaraProvider
- func (self *SApsaraProvider) CreateICloudgroup(name, desc string) (cloudprovider.ICloudgroup, error)
- func (self *SApsaraProvider) CreateICloudpolicy(opts *cloudprovider.SCloudpolicyCreateOptions) (cloudprovider.ICloudpolicy, error)
- func (self *SApsaraProvider) CreateIClouduser(conf *cloudprovider.SClouduserCreateConfig) (cloudprovider.IClouduser, error)
- func (self *SApsaraProvider) CreateIProject(name string) (cloudprovider.ICloudProject, error)
- func (self *SApsaraProvider) GetAccountId() string
- func (self *SApsaraProvider) GetBalance() (float64, string, error)
- func (self *SApsaraProvider) GetBucketCannedAcls(regionId string) []string
- func (self *SApsaraProvider) GetCapabilities() []string
- func (self *SApsaraProvider) GetICloudgroupByName(name string) (cloudprovider.ICloudgroup, error)
- func (self *SApsaraProvider) GetICloudgroups() ([]cloudprovider.ICloudgroup, error)
- func (self *SApsaraProvider) GetIClouduserByName(name string) (cloudprovider.IClouduser, error)
- func (self *SApsaraProvider) GetICloudusers() ([]cloudprovider.IClouduser, error)
- func (self *SApsaraProvider) GetICustomCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
- func (self *SApsaraProvider) GetIProjects() ([]cloudprovider.ICloudProject, error)
- func (self *SApsaraProvider) GetIRegionById(extId string) (cloudprovider.ICloudRegion, error)
- func (self *SApsaraProvider) GetIRegions() []cloudprovider.ICloudRegion
- func (self *SApsaraProvider) GetISystemCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
- func (self *SApsaraProvider) GetIamLoginUrl() string
- func (self *SApsaraProvider) GetMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
- func (self *SApsaraProvider) GetObjectCannedAcls(regionId string) []string
- func (self *SApsaraProvider) GetStorageClasses(regionId string) []string
- func (self *SApsaraProvider) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
- func (self *SApsaraProvider) GetSysInfo() (jsonutils.JSONObject, error)
- func (self *SApsaraProvider) GetVersion() string
- func (self *SApsaraProvider) WithClient(client *apsara.SApsaraClient) *SApsaraProvider
- type SApsaraProviderFactory
- func (self *SApsaraProviderFactory) GetClientRC(info cloudprovider.SProviderInfo) (map[string]string, error)
- func (self *SApsaraProviderFactory) GetId() string
- func (self *SApsaraProviderFactory) GetName() string
- func (self *SApsaraProviderFactory) GetProvider(cfg cloudprovider.ProviderConfig) (cloudprovider.ICloudProvider, error)
- func (self *SApsaraProviderFactory) IsMultiTenant() bool
- func (self *SApsaraProviderFactory) IsNeedForceAutoCreateProject() bool
- func (self *SApsaraProviderFactory) ValidateCreateCloudaccountData(ctx context.Context, userCred mcclient.TokenCredential, ...) (cloudprovider.SCloudaccount, error)
- func (self *SApsaraProviderFactory) 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 SApsaraProvider ¶
type SApsaraProvider struct { cloudprovider.SBaseProvider // contains filtered or unexported fields }
func (*SApsaraProvider) CreateICloudgroup ¶
func (self *SApsaraProvider) CreateICloudgroup(name, desc string) (cloudprovider.ICloudgroup, error)
func (*SApsaraProvider) CreateICloudpolicy ¶
func (self *SApsaraProvider) CreateICloudpolicy(opts *cloudprovider.SCloudpolicyCreateOptions) (cloudprovider.ICloudpolicy, error)
func (*SApsaraProvider) CreateIClouduser ¶
func (self *SApsaraProvider) CreateIClouduser(conf *cloudprovider.SClouduserCreateConfig) (cloudprovider.IClouduser, error)
func (*SApsaraProvider) CreateIProject ¶
func (self *SApsaraProvider) CreateIProject(name string) (cloudprovider.ICloudProject, error)
func (*SApsaraProvider) GetAccountId ¶
func (self *SApsaraProvider) GetAccountId() string
func (*SApsaraProvider) GetBalance ¶
func (self *SApsaraProvider) GetBalance() (float64, string, error)
func (*SApsaraProvider) GetBucketCannedAcls ¶
func (self *SApsaraProvider) GetBucketCannedAcls(regionId string) []string
func (*SApsaraProvider) GetCapabilities ¶
func (self *SApsaraProvider) GetCapabilities() []string
func (*SApsaraProvider) GetICloudgroupByName ¶
func (self *SApsaraProvider) GetICloudgroupByName(name string) (cloudprovider.ICloudgroup, error)
func (*SApsaraProvider) GetICloudgroups ¶
func (self *SApsaraProvider) GetICloudgroups() ([]cloudprovider.ICloudgroup, error)
func (*SApsaraProvider) GetIClouduserByName ¶
func (self *SApsaraProvider) GetIClouduserByName(name string) (cloudprovider.IClouduser, error)
func (*SApsaraProvider) GetICloudusers ¶
func (self *SApsaraProvider) GetICloudusers() ([]cloudprovider.IClouduser, error)
func (*SApsaraProvider) GetICustomCloudpolicies ¶
func (self *SApsaraProvider) GetICustomCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
func (*SApsaraProvider) GetIProjects ¶
func (self *SApsaraProvider) GetIProjects() ([]cloudprovider.ICloudProject, error)
func (*SApsaraProvider) GetIRegionById ¶
func (self *SApsaraProvider) GetIRegionById(extId string) (cloudprovider.ICloudRegion, error)
func (*SApsaraProvider) GetIRegions ¶
func (self *SApsaraProvider) GetIRegions() []cloudprovider.ICloudRegion
func (*SApsaraProvider) GetISystemCloudpolicies ¶
func (self *SApsaraProvider) GetISystemCloudpolicies() ([]cloudprovider.ICloudpolicy, error)
func (*SApsaraProvider) GetIamLoginUrl ¶
func (self *SApsaraProvider) GetIamLoginUrl() string
func (*SApsaraProvider) GetMetrics ¶
func (self *SApsaraProvider) GetMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
func (*SApsaraProvider) GetObjectCannedAcls ¶
func (self *SApsaraProvider) GetObjectCannedAcls(regionId string) []string
func (*SApsaraProvider) GetStorageClasses ¶
func (self *SApsaraProvider) GetStorageClasses(regionId string) []string
func (*SApsaraProvider) GetSubAccounts ¶
func (self *SApsaraProvider) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
func (*SApsaraProvider) GetSysInfo ¶
func (self *SApsaraProvider) GetSysInfo() (jsonutils.JSONObject, error)
func (*SApsaraProvider) GetVersion ¶
func (self *SApsaraProvider) GetVersion() string
func (*SApsaraProvider) WithClient ¶
func (self *SApsaraProvider) WithClient(client *apsara.SApsaraClient) *SApsaraProvider
type SApsaraProviderFactory ¶
type SApsaraProviderFactory struct {
cloudprovider.SPrivateCloudBaseProviderFactory
}
func (*SApsaraProviderFactory) GetClientRC ¶
func (self *SApsaraProviderFactory) GetClientRC(info cloudprovider.SProviderInfo) (map[string]string, error)
func (*SApsaraProviderFactory) GetId ¶
func (self *SApsaraProviderFactory) GetId() string
func (*SApsaraProviderFactory) GetName ¶
func (self *SApsaraProviderFactory) GetName() string
func (*SApsaraProviderFactory) GetProvider ¶
func (self *SApsaraProviderFactory) GetProvider(cfg cloudprovider.ProviderConfig) (cloudprovider.ICloudProvider, error)
func (*SApsaraProviderFactory) IsMultiTenant ¶
func (self *SApsaraProviderFactory) IsMultiTenant() bool
func (*SApsaraProviderFactory) IsNeedForceAutoCreateProject ¶
func (self *SApsaraProviderFactory) IsNeedForceAutoCreateProject() bool
func (*SApsaraProviderFactory) ValidateCreateCloudaccountData ¶
func (self *SApsaraProviderFactory) ValidateCreateCloudaccountData(ctx context.Context, userCred mcclient.TokenCredential, input cloudprovider.SCloudaccountCredential) (cloudprovider.SCloudaccount, error)
func (*SApsaraProviderFactory) ValidateUpdateCloudaccountCredential ¶
func (self *SApsaraProviderFactory) 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.