Documentation ¶
Index ¶
- type Cache
- type CacheEntry
- type MCFSFile
- func (f *MCFSFile) Flush(ctx context.Context) syscall.Errno
- func (f *MCFSFile) Lseek(ctx context.Context, off uint64, whence uint32) (uint64, syscall.Errno)
- func (f *MCFSFile) Read(ctx context.Context, buf []byte, off int64) (res fuse.ReadResult, errno syscall.Errno)
- func (f *MCFSFile) Write(ctx context.Context, data []byte, off int64) (uint32, syscall.Errno)
- type Node
- func (n *Node) Create(ctx context.Context, name string, flags uint32, mode uint32, ...) (inode *fs.Inode, fh fs.FileHandle, fuseFlags uint32, errno syscall.Errno)
- func (n *Node) Getattr(ctx context.Context, f fs.FileHandle, out *fuse.AttrOut) syscall.Errno
- func (n *Node) Lookup(ctx context.Context, name string, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)
- func (n *Node) Mkdir(ctx context.Context, name string, mode uint32, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)
- func (n *Node) Open(ctx context.Context, flags uint32) (fh fs.FileHandle, fuseFlags uint32, errno syscall.Errno)
- func (n *Node) Readdir(ctx context.Context) (fs.DirStream, syscall.Errno)
- func (n *Node) Rename(ctx context.Context, name string, newParent fs.InodeEmbedder, newName string, ...) syscall.Errno
- func (n *Node) Rmdir(ctx context.Context, name string) syscall.Errno
- func (n *Node) Unlink(ctx context.Context, name string) syscall.Errno
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheEntry ¶
type Node ¶
func (*Node) Mkdir ¶
func (n *Node) Mkdir(ctx context.Context, name string, mode uint32, out *fuse.EntryOut) (*fs.Inode, syscall.Errno)
Mkdir will create a directory on the Materials Commons server. TODO: Reflect the created directory in the cached nodes. This will require changing to the cache implementation.
Click to show internal directories.
Click to hide internal directories.