Documentation ¶
Index ¶
- type Volume
- func (*Volume) GenerateInode(parent uint64, name string) uint64
- func (v *Volume) Root() (fs.Node, error)
- func (v *Volume) SetFUSE(srv *fs.Server)
- func (v *Volume) Snapshot(ctx context.Context, tx *db.Tx) (*wiresnap.Snapshot, error)
- func (v *Volume) SyncReceive(ctx context.Context, dirPath string, peers map[uint32][]byte, ...) error
- func (v *Volume) SyncSend(ctx context.Context, dirPath string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Volume ¶
type Volume struct {
// contains filtered or unexported fields
}
func Open ¶
func Open(db *db.DB, chunkStore chunks.Store, volumeID *db.VolumeID, pubKey *peer.PublicKey) (*Volume, error)
Open returns a FUSE filesystem instance serving content from the given volume. The result can be passed to bazil.org/fuse/fs#Serve to start serving file access requests from the kernel.
Caller guarantees volume ID exists at least as long as requests are served for this file system.
func (*Volume) Snapshot ¶
Snapshot records a snapshot of the volume. The Snapshot message itself has not been persisted yet.
func (*Volume) SyncReceive ¶
Directories ¶
Path | Synopsis |
---|---|
Package clock implements a logical clock, tracking changes at multiple peers.
|
Package clock implements a logical clock, tracking changes at multiple peers. |
Package inodes contains the logic for allocating inode numbers.
|
Package inodes contains the logic for allocating inode numbers. |
Package readonly provides simplified read-only FUSE access to file system contents based on CAS stored data.
|
Package readonly provides simplified read-only FUSE access to file system contents based on CAS stored data. |
Click to show internal directories.
Click to hide internal directories.