Documentation ¶
Index ¶
- type SCephAdminApi
- func (api *SCephAdminApi) GetBucketQuota(ctx context.Context, uid string, bucket string) (*SQuota, error)
- func (api *SCephAdminApi) GetUsage(ctx context.Context, uid string) (jsonutils.JSONObject, error)
- func (api *SCephAdminApi) GetUserInfo(ctx context.Context, uid string) (*SUserInfo, error)
- func (api *SCephAdminApi) GetUserQuota(ctx context.Context, uid string) (*SQuota, *SQuota, error)
- func (api *SCephAdminApi) SetAllBucketQuota(ctx context.Context, uid string, sizeBytes int64, objects int) error
- func (api *SCephAdminApi) SetBucketQuota(ctx context.Context, uid string, bucket string, sizeBytes int64, objects int) error
- func (api *SCephAdminApi) SetUserQuota(ctx context.Context, uid string, sizeBytes int64, objects int) error
- type SCephRadosBucket
- type SCephRadosClient
- type SQuota
- type SQuotaQuery
- type SUserAccessKey
- type SUserCapability
- type SUserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SCephAdminApi ¶
type SCephAdminApi struct {
// contains filtered or unexported fields
}
func (*SCephAdminApi) GetBucketQuota ¶
func (api *SCephAdminApi) GetBucketQuota(ctx context.Context, uid string, bucket string) (*SQuota, error)
ceph目前不支持设置bucket的quota,因此返回全局的bucket quota
func (*SCephAdminApi) GetUsage ¶
func (api *SCephAdminApi) GetUsage(ctx context.Context, uid string) (jsonutils.JSONObject, error)
func (*SCephAdminApi) GetUserInfo ¶
func (*SCephAdminApi) GetUserQuota ¶
func (*SCephAdminApi) SetAllBucketQuota ¶
func (*SCephAdminApi) SetBucketQuota ¶
func (api *SCephAdminApi) SetBucketQuota(ctx context.Context, uid string, bucket string, sizeBytes int64, objects int) error
ceph目前不支持设置quota,因此返回全局的bucket quota
func (*SCephAdminApi) SetUserQuota ¶
type SCephRadosBucket ¶
type SCephRadosBucket struct {
*objectstore.SBucket
}
func (*SCephRadosBucket) GetLimit ¶
func (b *SCephRadosBucket) GetLimit() cloudprovider.SBucketStats
func (*SCephRadosBucket) GetStats ¶
func (b *SCephRadosBucket) GetStats() cloudprovider.SBucketStats
func (*SCephRadosBucket) SetLimit ¶
func (b *SCephRadosBucket) SetLimit(limit cloudprovider.SBucketStats) error
type SCephRadosClient ¶
type SCephRadosClient struct { *objectstore.SObjectStoreClient // contains filtered or unexported fields }
func NewCephRados ¶
func NewCephRados(cfg *objectstore.ObjectStoreClientConfig) (*SCephRadosClient, error)
func (*SCephRadosClient) About ¶
func (cli *SCephRadosClient) About() jsonutils.JSONObject
func (*SCephRadosClient) GetProvider ¶
func (cli *SCephRadosClient) GetProvider() string
func (*SCephRadosClient) GetVersion ¶
func (cli *SCephRadosClient) GetVersion() string
func (*SCephRadosClient) NewBucket ¶
func (cli *SCephRadosClient) NewBucket(bucket s3cli.BucketInfo) cloudprovider.ICloudBucket
type SQuotaQuery ¶
type SQuotaQuery struct { QuotaType string `json:"quota-type"` Uid string `json:"uid"` Bucket string `json:"bucket"` }
func (SQuotaQuery) Query ¶
func (q SQuotaQuery) Query() string
type SUserAccessKey ¶
type SUserCapability ¶
Click to show internal directories.
Click to hide internal directories.