Documentation ¶
Index ¶
- type SBaseModelDelegate
- type SBaseModelManagerDelegate
- type SBucketDelegate
- func (bucket *SBucketDelegate) GetIBucket(ctx context.Context, userCred mcclient.TokenCredential) (cloudprovider.ICloudBucket, error)
- func (bucket *SBucketDelegate) Invalidate()
- func (bucket *SBucketDelegate) IsOutOfLimit() error
- func (bucket *SBucketDelegate) ListObject(ctx context.Context, userCred mcclient.TokenCredential, ...) (*s3cli.ListBucketResult, error)
- type SBucketManagerDelegate
- func (manager *SBucketManagerDelegate) DeleteByName(ctx context.Context, userCred mcclient.TokenCredential, name string) error
- func (manager *SBucketManagerDelegate) GetByName(ctx context.Context, userCred mcclient.TokenCredential, name string) (*SBucketDelegate, error)
- func (manager *SBucketManagerDelegate) Invalidate(name string)
- func (manager *SBucketManagerDelegate) List(ctx context.Context, userCred mcclient.TokenCredential) ([]*SBucketDelegate, error)
- type SCloudproviderDelegate
- type SCloudproviderManagerDelegate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SBaseModelDelegate ¶
type SBaseModelManagerDelegate ¶
type SBaseModelManagerDelegate struct { }
type SBucketDelegate ¶
type SBucketDelegate struct { SBaseModelDelegate Location string ManagerId string ObjectCnt int SizeBytes int64 ObjectCntLimit int SizeBytesLimit int64 RegionExternalId string ExternalId string }
{ "access_urls":[{"description":"bucket domain","primary":true,"url":"https://yunion-billing-reports.s3.cn-northwest-1.amazonaws.com.cn"},{"description":"s3 domain","primary":false,"url":"https://s3.cn-northwest-1.amazonaws.com.cn/yunion-billing-reports"}], "account":"aws-cn", "account_id":"edc90a61-7f8a-4be7-84f1-8f3ac70ef5e6", "acl":"private", "brand":"Aws", "can_delete":false, "can_update":true, "cloud_env":"public", "cloudregion_id":"4cbf92a5-337b-4cc6-82c7-86e5427b69e3", "created_at":"2019-03-11T10:31:26.000000Z", "domain_id":"default", "external_id":"yunion-billing-reports", "id":"056bb8c6-527d-4554-8939-12eb6aa803bd", "is_emulated":false, "is_system":false, "location":"cn-northwest-1", "manager":"aws-cn", "manager_domain":"Default", "manager_domain_id":"default", "manager_id":"d8df39fa-b212-43c1-8d44-aeef897e216d", "manager_project":"system", "manager_project_id":"5d65667d112e47249ae66dbd7bc07030", "name":"yunion-billing-reports", "object_cnt":44, "object_cnt_limit":0, "project_domain":"Default", "project_src":"cloud", "provider":"Aws", "region":"AWS 中国(宁夏)", "region_ext_id":"cn-northwest-1", "region_id":"4cbf92a5-337b-4cc6-82c7-86e5427b69e3", "size_bytes":3332448, "size_bytes_limit":0, "status":"ready", "tenant":"system", "tenant_id":"5d65667d112e47249ae66dbd7bc07030", "update_version":1, "updated_at":"2019-08-18T15:52:42.000000Z", }
func (*SBucketDelegate) GetIBucket ¶
func (bucket *SBucketDelegate) GetIBucket(ctx context.Context, userCred mcclient.TokenCredential) (cloudprovider.ICloudBucket, error)
func (*SBucketDelegate) Invalidate ¶
func (bucket *SBucketDelegate) Invalidate()
func (*SBucketDelegate) IsOutOfLimit ¶
func (bucket *SBucketDelegate) IsOutOfLimit() error
func (*SBucketDelegate) ListObject ¶
func (bucket *SBucketDelegate) ListObject(ctx context.Context, userCred mcclient.TokenCredential, input *s3cli.ListObjectInput) (*s3cli.ListBucketResult, error)
type SBucketManagerDelegate ¶
type SBucketManagerDelegate struct {
// contains filtered or unexported fields
}
var BucketManager *SBucketManagerDelegate
func (*SBucketManagerDelegate) DeleteByName ¶
func (manager *SBucketManagerDelegate) DeleteByName(ctx context.Context, userCred mcclient.TokenCredential, name string) error
func (*SBucketManagerDelegate) GetByName ¶
func (manager *SBucketManagerDelegate) GetByName(ctx context.Context, userCred mcclient.TokenCredential, name string) (*SBucketDelegate, error)
func (*SBucketManagerDelegate) Invalidate ¶
func (manager *SBucketManagerDelegate) Invalidate(name string)
func (*SBucketManagerDelegate) List ¶
func (manager *SBucketManagerDelegate) List(ctx context.Context, userCred mcclient.TokenCredential) ([]*SBucketDelegate, error)
type SCloudproviderDelegate ¶
type SCloudproviderDelegate struct { SBaseModelDelegate Enabled bool Status string SyncStatus string AccessUrl string Account string Secret string Provider string Brand string ProxySetting proxyapi.SProxySetting }
func (*SCloudproviderDelegate) GetProvider ¶
func (provider *SCloudproviderDelegate) GetProvider() (cloudprovider.ICloudProvider, error)
func (*SCloudproviderDelegate) GetProviderFactory ¶
func (provider *SCloudproviderDelegate) GetProviderFactory() (cloudprovider.ICloudProviderFactory, error)
type SCloudproviderManagerDelegate ¶
type SCloudproviderManagerDelegate struct {
// contains filtered or unexported fields
}
var CloudproviderManager *SCloudproviderManagerDelegate
func (*SCloudproviderManagerDelegate) GetById ¶
func (manager *SCloudproviderManagerDelegate) GetById(ctx context.Context, userCred mcclient.TokenCredential, id string) (*SCloudproviderDelegate, error)
Click to show internal directories.
Click to hide internal directories.