Documentation
¶
Index ¶
- Constants
- func NewFuseKVFileSystem() (pathfs.FileSystem, error)
- func NewKVFile(path string, store config.KVStore) nodefs.File
- func Verbose(message string, args ...interface{})
- type FuseKVFileSystem
- func (px *FuseKVFileSystem) CachedListing(key string) ([]*config.Node, error)
- func (px *FuseKVFileSystem) CachedNode(key string) (*config.Node, error)
- func (px *FuseKVFileSystem) CleanDir(key string)
- func (px *FuseKVFileSystem) CleanNode(key string)
- func (px *FuseKVFileSystem) Create(name string, flags uint32, mode uint32, context *fuse.Context) (file nodefs.File, code fuse.Status)
- func (px *FuseKVFileSystem) GetAttr(name string, context *fuse.Context) (*fuse.Attr, fuse.Status)
- func (px *FuseKVFileSystem) Mkdir(name string, mode uint32, context *fuse.Context) fuse.Status
- func (px *FuseKVFileSystem) NodeWatcher() error
- func (px *FuseKVFileSystem) Open(name string, flags uint32, context *fuse.Context) (file nodefs.File, code fuse.Status)
- func (px *FuseKVFileSystem) OpenDir(name string, context *fuse.Context) (stream []fuse.DirEntry, status fuse.Status)
- func (px *FuseKVFileSystem) Rmdir(name string, context *fuse.Context) (code fuse.Status)
- func (px *FuseKVFileSystem) String() string
- func (px *FuseKVFileSystem) Unlink(name string, context *fuse.Context) (code fuse.Status)
- type KVFile
- func (f *KVFile) Allocate(off uint64, size uint64, mode uint32) (code fuse.Status)
- func (f *KVFile) Chmod(perms uint32) fuse.Status
- func (f *KVFile) Chown(uid uint32, gid uint32) fuse.Status
- func (f *KVFile) Flush() fuse.Status
- func (f *KVFile) Fsync(flags int) (code fuse.Status)
- func (f *KVFile) GetAttr(attr *fuse.Attr) fuse.Status
- func (f *KVFile) InnerFile() nodefs.File
- func (f *KVFile) Read(buf []byte, off int64) (fuse.ReadResult, fuse.Status)
- func (f *KVFile) Release()
- func (f *KVFile) SetInode(node *nodefs.Inode)
- func (f *KVFile) String() string
- func (f *KVFile) Truncate(size uint64) fuse.Status
- func (f *KVFile) Utimens(atime *time.Time, mtime *time.Time) fuse.Status
- func (f *KVFile) Write(data []byte, off int64) (uint32, fuse.Status)
Constants ¶
View Source
const ( SUFFIX_CACHE_NODE = "-node" SUFFIX_CACHE_LISTING = "-list" )
View Source
const FUSE_VERBOSE_LEVEL = 7
Variables ¶
This section is empty.
Functions ¶
func NewFuseKVFileSystem ¶
func NewFuseKVFileSystem() (pathfs.FileSystem, error)
Types ¶
type FuseKVFileSystem ¶
type FuseKVFileSystem struct { /* the path file system interface we have to implement */ pathfs.FileSystem /* the cache used by the fs */ Cache cache.Cache /* the kv agent we are using */ StoreKV config.KVStore /* the time we were created / initialized */ BigBang time.Time /* a map of file name to last change event */ NodeChanges map[string]time.Time }
func (*FuseKVFileSystem) CachedListing ¶
func (px *FuseKVFileSystem) CachedListing(key string) ([]*config.Node, error)
func (*FuseKVFileSystem) CachedNode ¶
func (px *FuseKVFileSystem) CachedNode(key string) (*config.Node, error)
func (*FuseKVFileSystem) CleanDir ¶
func (px *FuseKVFileSystem) CleanDir(key string)
func (*FuseKVFileSystem) CleanNode ¶
func (px *FuseKVFileSystem) CleanNode(key string)
func (*FuseKVFileSystem) NodeWatcher ¶
func (px *FuseKVFileSystem) NodeWatcher() error
func (*FuseKVFileSystem) String ¶
func (px *FuseKVFileSystem) String() string
Click to show internal directories.
Click to hide internal directories.