Documentation ¶
Index ¶
- Constants
- func HeaderToFileInfo(h *tar.Header) (*fuse.Attr, string)
- func NewTarCompressedTree(name string, format string) (map[string]MemFile, error)
- func NewTarTree(r io.Reader) map[string]MemFile
- func NewZipTree(name string) (map[string]MemFile, error)
- type MemFile
- type MemTreeFs
- type MultiZipFs
- func (me *MultiZipFs) GetAttr(name string, context *fuse.Context) (*fuse.Attr, fuse.Status)
- func (me *MultiZipFs) OnMount(nodeFs *fuse.PathNodeFs)
- func (me *MultiZipFs) OpenDir(name string, context *fuse.Context) (stream chan fuse.DirEntry, code fuse.Status)
- func (me *MultiZipFs) Readlink(path string, context *fuse.Context) (val string, code fuse.Status)
- func (me *MultiZipFs) String() string
- func (me *MultiZipFs) Symlink(value string, linkName string, context *fuse.Context) (code fuse.Status)
- func (me *MultiZipFs) Unlink(name string, context *fuse.Context) (code fuse.Status)
- type TarFile
- type ZipFile
Constants ¶
View Source
const (
CONFIG_PREFIX = "config/"
)
Variables ¶
This section is empty.
Functions ¶
func NewTarCompressedTree ¶
Types ¶
type MemTreeFs ¶
type MemTreeFs struct { fuse.DefaultNodeFileSystem // contains filtered or unexported fields }
MemTreeFs creates a tree of internal Inodes. Since the tree is loaded in memory completely at startup, it does not need to inode discovery through Lookup() at serve time.
func NewArchiveFileSystem ¶
func NewMemTreeFs ¶
func NewMemTreeFs() *MemTreeFs
func (*MemTreeFs) OnMount ¶
func (me *MemTreeFs) OnMount(conn *fuse.FileSystemConnector)
type MultiZipFs ¶
type MultiZipFs struct { fuse.DefaultFileSystem // contains filtered or unexported fields }
MultiZipFs is a path filesystem that mounts zipfiles.
func NewMultiZipFs ¶
func NewMultiZipFs() *MultiZipFs
func (*MultiZipFs) OnMount ¶
func (me *MultiZipFs) OnMount(nodeFs *fuse.PathNodeFs)
func (*MultiZipFs) String ¶
func (me *MultiZipFs) String() string
Click to show internal directories.
Click to hide internal directories.