Documentation ¶
Index ¶
- Constants
- type BlobStoreClient
- func (ebs *BlobStoreClient) Delete(oeks []proto.ObjExtentKey) (err error)
- func (ebs *BlobStoreClient) Read(ctx context.Context, volName string, buf []byte, offset uint64, size uint64, ...) (readN int, err error)
- func (ebs *BlobStoreClient) Write(ctx context.Context, volName string, data []byte) (location access.Location, err error)
- type ClientConfig
- type Instance
- type Reader
- type Writer
Constants ¶
View Source
const ( MaxRetryTimes = 3 RetrySleepInterval = 100 * time.Millisecond )
View Source
const (
MaxBufferSize = 512 * util.MB
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobStoreClient ¶
type BlobStoreClient struct {
// contains filtered or unexported fields
}
func NewEbsClient ¶
func NewEbsClient(cfg access.Config) (*BlobStoreClient, error)
func (*BlobStoreClient) Delete ¶
func (ebs *BlobStoreClient) Delete(oeks []proto.ObjExtentKey) (err error)
type ClientConfig ¶
type ClientConfig struct { VolName string VolType int BlockSize int Ino uint64 Bc *bcache.BcacheClient Mw *meta.MetaWrapper Ec *stream.ExtentClient Ebsc *BlobStoreClient EnableBcache bool WConcurrency int ReadConcurrency int CacheAction int FileCache bool FileSize uint64 CacheThreshold int }
type Reader ¶
func NewReader ¶
func NewReader(config ClientConfig) (reader *Reader)
type Writer ¶
func NewWriter ¶
func NewWriter(config ClientConfig) (writer *Writer)
func (*Writer) CacheFileSize ¶
Click to show internal directories.
Click to hide internal directories.