Documentation
¶
Index ¶
Constants ¶
View Source
const ( XattrKey = "user.vdisc-cache-key" XattrChecksum = "user.vdisc-cache-checksum" )
Variables ¶
View Source
var NopCache = nopCache{}
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type DiskSlicer ¶
type DiskSlicer struct {
// contains filtered or unexported fields
}
func NewDiskSlicer ¶
func NewDiskSlicer(root string, bsize int64) *DiskSlicer
func (*DiskSlicer) Bsize ¶
func (ds *DiskSlicer) Bsize() int64
func (*DiskSlicer) CheckIntegrity ¶
func (ds *DiskSlicer) CheckIntegrity() error
func (*DiskSlicer) Gc ¶
func (ds *DiskSlicer) Gc(threshold GcThreshold)
func (*DiskSlicer) Wait ¶
func (ds *DiskSlicer) Wait()
type GcThreshold ¶
type ReadAheadController ¶
type ReadAheadController struct {
// contains filtered or unexported fields
}
func NewReadAheadController ¶
func (*ReadAheadController) Update ¶
func (rac *ReadAheadController) Update(off int64, n int)
type Slice ¶
type Slice interface { storage.AnonymousObject ReadAhead() }
Click to show internal directories.
Click to hide internal directories.