zipfs

package
v2.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2022 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HeaderToFileInfo

func HeaderToFileInfo(out *fuse.Attr, h *tar.Header)

HeaderToFileInfo fills a fuse.Attr struct from a tar.Header.

func NewArchiveFileSystem

func NewArchiveFileSystem(name string) (root fs.InodeEmbedder, err error)

func NewTarCompressedTree

func NewTarCompressedTree(name string, format string) (fs.InodeEmbedder, error)

NewTarCompressedTree creates the tree of a tar file as a FUSE InodeEmbedder. The inode can either be mounted as the root of a FUSE mount, or added as a child to some other FUSE tree.

func NewZipTree

func NewZipTree(name string) (fs.InodeEmbedder, error)

NewZipTree creates a new file-system for the zip file named name.

Types

type MultiZipFs

type MultiZipFs struct {
	fs.Inode
}

MultiZipFs is a filesystem that mounts zipfiles.

func (*MultiZipFs) OnAdd

func (root *MultiZipFs) OnAdd(ctx context.Context)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL