Documentation ¶
Index ¶
- Constants
- func LifeCycleFromBucket(b Bucket) (lc LifeCycle)
- type CacheType
- type Meta
- func (m *Meta) AddBucketForUser(bucketName string, userId string) (err error)
- func (m *Meta) DeleteObjMapEntry(objMap *ObjMap) error
- func (m *Meta) DeleteObjectEntry(object *Object) error
- func (m *Meta) GetAllObject(bucketName string, objectName string) (object []*Object, err error)
- func (m *Meta) GetBucket(bucketName string, willNeed bool) (bucket Bucket, err error)
- func (m *Meta) GetBucketInfo(bucketName string) (Bucket, error)
- func (m *Meta) GetBuckets() (buckets []Bucket, err error)
- func (m *Meta) GetCluster(fsid string, pool string) (cluster Cluster, err error)
- func (m *Meta) GetMultipart(bucketName, objectName, uploadId string) (multipart Multipart, err error)
- func (m *Meta) GetObject(bucketName string, objectName string, willNeed bool) (object *Object, err error)
- func (m *Meta) GetObjectMap(bucketName, objectName string) (objMap *ObjMap, err error)
- func (m *Meta) GetObjectVersion(bucketName, objectName, version string, willNeed bool) (object *Object, err error)
- func (m *Meta) GetUsage(bucketName string) (int64, error)
- func (m *Meta) GetUserBuckets(userId string, willNeed bool) (buckets []string, err error)
- func (m *Meta) GetUserInfo(uid string) ([]string, error)
- func (m *Meta) PutBucketToLifeCycle(bucket Bucket) error
- func (m *Meta) PutObjMapEntry(objMap *ObjMap) error
- func (m *Meta) PutObjectEntry(object *Object) error
- func (m *Meta) PutObjectToGarbageCollection(object *Object) error
- func (m *Meta) RemoveBucketForUser(bucketName string, userId string) (err error)
- func (m *Meta) RemoveBucketFromLifeCycle(bucket Bucket) error
- func (m *Meta) RemoveGarbageCollection(garbage GarbageCollection) error
- func (m *Meta) ScanGarbageCollection(limit int, startRowKey string) ([]GarbageCollection, error)
- func (m *Meta) ScanLifeCycle(limit int, marker string) (result ScanLifeCycleResult, err error)
- func (m *Meta) UpdateObjectAcl(object *Object) error
- func (m *Meta) UpdateUsage(bucketName string, size int64)
- type MetaCache
Constants ¶
View Source
const (
BUCKET_NUMBER_LIMIT = 100
)
View Source
const (
ENCRYPTION_KEY_LENGTH = 32 // 32 bytes for AES-"256"
)
Variables ¶
This section is empty.
Functions ¶
func LifeCycleFromBucket ¶
func LifeCycleFromBucket(b Bucket) (lc LifeCycle)
Types ¶
type Meta ¶
func (*Meta) AddBucketForUser ¶
func (*Meta) DeleteObjMapEntry ¶
func (*Meta) DeleteObjectEntry ¶
func (*Meta) GetAllObject ¶
func (*Meta) GetBucket ¶
Note the usage info got from this method is possibly not accurate because we don't invalid cache when updating usage. For accurate usage info, use `GetUsage()`
func (*Meta) GetBucketInfo ¶
func (*Meta) GetBuckets ¶ added in v1.1.4
func (*Meta) GetCluster ¶
func (*Meta) GetMultipart ¶
func (*Meta) GetObjectMap ¶
func (*Meta) GetObjectVersion ¶
func (*Meta) GetUserBuckets ¶
func (*Meta) PutBucketToLifeCycle ¶
func (*Meta) PutObjMapEntry ¶
func (*Meta) PutObjectEntry ¶
func (*Meta) PutObjectToGarbageCollection ¶
Insert object to `garbageCollection` table
func (*Meta) RemoveBucketForUser ¶
func (*Meta) RemoveBucketFromLifeCycle ¶
func (*Meta) RemoveGarbageCollection ¶
func (*Meta) ScanGarbageCollection ¶
func (*Meta) ScanLifeCycle ¶
func (*Meta) UpdateObjectAcl ¶ added in v1.1.1
func (*Meta) UpdateUsage ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.