Documentation ¶
Index ¶
- type CacheType
- type Meta
- func (m *Meta) AbortTrans(tx Tx) (err error)
- func (m *Meta) AddDeleteMarker(marker *Object) (err error)
- func (m *Meta) AppendObject(object *Object, olderObject *Object) error
- func (m *Meta) CommitTrans(tx Tx) (err error)
- func (m *Meta) CreateFreezer(freezer *types.Freezer) error
- func (m *Meta) DeleteFreezer(freezer *types.Freezer) (err error)
- func (m *Meta) DeleteFreezerWithoutCephObject(bucketName, objectName, version string, freezerType types.ObjectType, ...) (err error)
- func (m *Meta) DeleteMultipart(multipart Multipart) (removedSize int64, err error)
- func (m *Meta) DeleteObject(object *Object) (err error)
- func (m *Meta) DeleteObjectWithTx(object *Object, tx Tx) (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(userId string) ([]string, error)
- func (m *Meta) MigrateObject(object *Object) error
- func (m *Meta) NewTrans() (tx Tx, err error)
- func (m *Meta) PutBucketToLifeCycle(bucket Bucket) error
- func (m *Meta) PutFreezer(freezer *types.Freezer, status common.RestoreStatus) error
- func (m *Meta) PutFreezerToGarbageCollection(freezer *Freezer) error
- func (m *Meta) PutObject(reqCtx RequestContext, object *Object, multipart *Multipart, updateUsage bool) (deltaInfo map[common.StorageClass]int64, err error)
- func (m *Meta) PutObjectPart(multipart Multipart, part Part) (deltaSize int64, err error)
- func (m *Meta) PutObjectToGarbageCollection(object *Object) error
- func (m *Meta) RemoveBucketFromLifeCycle(bucket Bucket) 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) 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) (err error)
- func (m *Meta) UpdateObjectAcl(object *Object) error
- func (m *Meta) UpdateObjectAttrs(object *Object) error
- type MetaCache
- type QosMeta
- func (m *QosMeta) AllowReadQuery(bucketName string) (allow bool)
- func (m *QosMeta) AllowWriteQuery(bucketName string) (allow bool)
- func (m *QosMeta) NewThrottleReader(bucketName string, reader io.Reader) *ThrottleReader
- func (m *QosMeta) NewThrottleWriter(bucketName string, writer io.Writer) *ThrottleWriter
- type ThrottleReader
- type ThrottleWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Meta ¶
type Meta struct { Client client.Client Cache MetaCache QosMeta *QosMeta GarbageCollectionProducer kafka.Producer // contains filtered or unexported fields }
func (*Meta) AbortTrans ¶
func (*Meta) AddDeleteMarker ¶
func (*Meta) AppendObject ¶
func (*Meta) CommitTrans ¶
func (*Meta) DeleteFreezerWithoutCephObject ¶
func (*Meta) DeleteMultipart ¶
func (*Meta) DeleteObject ¶
func (*Meta) DeleteObjectWithTx ¶
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) PutFreezer ¶
func (*Meta) PutFreezerToGarbageCollection ¶
func (*Meta) PutObjectPart ¶
func (*Meta) PutObjectToGarbageCollection ¶
Generate garbage object and send to Kafka
func (*Meta) RemoveBucketFromLifeCycle ¶
func (*Meta) RemoveHotObject ¶
func (*Meta) RenameObject ¶
func (*Meta) ReplaceObjectMetas ¶
func (*Meta) ScanLifeCycle ¶
func (*Meta) UpdateGlacierObject ¶
func (*Meta) UpdateObjectAcl ¶
func (*Meta) UpdateObjectAttrs ¶
type QosMeta ¶
type QosMeta struct {
// contains filtered or unexported fields
}
func NewQosMeta ¶
func (*QosMeta) AllowReadQuery ¶
func (*QosMeta) AllowWriteQuery ¶
func (*QosMeta) NewThrottleReader ¶
func (m *QosMeta) NewThrottleReader(bucketName string, reader io.Reader) *ThrottleReader
func (*QosMeta) NewThrottleWriter ¶
func (m *QosMeta) NewThrottleWriter(bucketName string, writer io.Writer) *ThrottleWriter
type ThrottleReader ¶
type ThrottleReader struct {
// contains filtered or unexported fields
}
func (*ThrottleReader) Close ¶
func (r *ThrottleReader) Close()
type ThrottleWriter ¶
type ThrottleWriter struct {
// contains filtered or unexported fields
}
func (*ThrottleWriter) Close ¶
func (w *ThrottleWriter) Close()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.