ceph

package
v0.3.10-0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

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 (api *SCephAdminApi) GetUserInfo(ctx context.Context, uid string) (*SUserInfo, error)

func (*SCephAdminApi) GetUserQuota

func (api *SCephAdminApi) GetUserQuota(ctx context.Context, uid string) (*SQuota, *SQuota, error)

func (*SCephAdminApi) SetAllBucketQuota

func (api *SCephAdminApi) SetAllBucketQuota(ctx context.Context, uid string, sizeBytes int64, objects int) error

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

func (api *SCephAdminApi) SetUserQuota(ctx context.Context, uid string, sizeBytes int64, objects int) error

type SCephRadosBucket

type SCephRadosBucket struct {
	*objectstore.SBucket
}

func (*SCephRadosBucket) GetLimit

func (*SCephRadosBucket) GetStats

func (*SCephRadosBucket) SetLimit

func (b *SCephRadosBucket) SetLimit(limit cloudprovider.SBucketStats) error

type SCephRadosClient

type SCephRadosClient struct {
	*objectstore.SObjectStoreClient
	// contains filtered or unexported fields
}

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

type SQuota

type SQuota struct {
	Enabled    tristate.TriState `json:"enabled"`
	CheckOnRaw bool              `json:"check_on_raw,omitfalse"`
	MaxSize    int64             `json:"max_size,omitzero"`
	MaxSizeKB  int64             `json:"max_size_kb,omitzero"`
	MaxObjects int               `json:"max_objects,omitzero"`
}

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

func (*SQuotaQuery) SetBucket

func (q *SQuotaQuery) SetBucket(uid string, level string, bucket string)

type SUserAccessKey

type SUserAccessKey struct {
	AccessKey string
	SecretKey string
	User      string
}

type SUserCapability

type SUserCapability struct {
	Perm string
	Type string
}

type SUserInfo

type SUserInfo struct {
	Caps        []SUserCapability
	DisplayName string
	Email       string
	UserId      string
	Tenant      string
	Suspended   int
	SubUsers    []string
	MaxBuckets  int
	Keys        []SUserAccessKey
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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