Documentation ¶
Index ¶
- Constants
- type CacheType
- type Meta
- func (m *Meta) AddDeleteMarker(marker *Object) (err error)
- func (m *Meta) AppendObject(object *Object, isExist bool) error
- func (m *Meta) CreateFreezer(freezer *types.Freezer) error
- func (m *Meta) DeleteFreezer(freezer *types.Freezer) (err error)
- func (m *Meta) DeleteMultipart(multipart Multipart) (err error)
- func (m *Meta) DeleteObject(object *Object) (err error)
- func (m *Meta) DeleteOldObject(object *Object) (err error)
- func (m *Meta) DeleteSuspendedObject(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) GetBucketLifeCycle(bucket Bucket) (lifeCycle *LifeCycle, err error)
- func (m *Meta) GetBuckets() (buckets []Bucket, err error)
- func (m *Meta) GetClusters() (cluster []Cluster, err error)
- func (m *Meta) GetFreezer(bucketName string, objectName string, version string) (freezer *types.Freezer, err error)
- func (m *Meta) GetFreezerStatus(bucketName string, objectName string, version string) (freezer *types.Freezer, err error)
- func (m *Meta) GetMultipart(bucketName, objectName, uploadId string) (multipart Multipart, err error)
- func (m *Meta) GetObject(bucketName, objectName, reqVersion 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) MigrateObject(object *Object) error
- func (m *Meta) PutBucketToLifeCycle(bucket Bucket) error
- func (m *Meta) PutObject(reqCtx RequestContext, object *Object, multipart *Multipart, updateUsage bool) error
- func (m *Meta) PutObjectPart(multipart Multipart, part Part) (err 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) RemoveHotObject(object *Object, tx Tx) error
- func (m *Meta) RenameObject(object *Object, sourceObject string) error
- func (m *Meta) ReplaceObjectMetas(object *Object) error
- func (m *Meta) ScanGarbageCollection(limit int) ([]GarbageCollection, error)
- func (m *Meta) ScanLifeCycle(limit int, marker string) (result ScanLifeCycleResult, err error)
- func (m *Meta) UpdateFreezerDate(freezer *types.Freezer) error
- func (m *Meta) UpdateGlacierObject(reqCtx RequestContext, targetObject, sourceObject *Object, isFreezer bool, ...) (err error)
- func (m *Meta) UpdateObjectAcl(object *Object) error
- func (m *Meta) UpdateObjectAttrs(object *Object) error
- func (m *Meta) UpdateUsage(bucketName string, size int64)
- type MetaCache
Constants ¶
View Source
const (
ENCRYPTION_KEY_LENGTH = 32 // 32 bytes for AES-"256"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Meta ¶
func (*Meta) AddDeleteMarker ¶
func (*Meta) AppendObject ¶
func (*Meta) DeleteMultipart ¶
func (*Meta) DeleteObject ¶
func (*Meta) DeleteOldObject ¶ added in v1.3.5
func (*Meta) DeleteSuspendedObject ¶
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) GetBucketLifeCycle ¶
func (*Meta) GetBuckets ¶
func (*Meta) GetClusters ¶
func (*Meta) GetFreezer ¶
func (*Meta) GetFreezerStatus ¶
func (*Meta) GetMultipart ¶
func (*Meta) GetUserBuckets ¶
func (*Meta) MigrateObject ¶
func (*Meta) PutBucketToLifeCycle ¶
func (*Meta) PutObjectPart ¶
func (*Meta) PutObjectToGarbageCollection ¶
Insert object to `garbageCollection` table
func (*Meta) RemoveBucketForUser ¶ added in v0.6.1
func (*Meta) RemoveBucketFromLifeCycle ¶
func (*Meta) RemoveGarbageCollection ¶ added in v0.6.1
func (*Meta) RemoveHotObject ¶
func (*Meta) RenameObject ¶
func (*Meta) ReplaceObjectMetas ¶
func (*Meta) ScanGarbageCollection ¶ added in v0.6.1
func (*Meta) ScanLifeCycle ¶
func (*Meta) UpdateGlacierObject ¶
func (*Meta) UpdateObjectAcl ¶
func (*Meta) UpdateObjectAttrs ¶
func (*Meta) UpdateUsage ¶ added in v0.6.1
Source Files ¶
Click to show internal directories.
Click to hide internal directories.