zip

package
v0.0.0-...-d46e842 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmount

func Unmount(mountPoint string)

Types

type FileHandle

type FileHandle struct {
	Inode     uint64
	FP        *zip.File
	NewFileFP *os.File
	// contains filtered or unexported fields
}

func (*FileHandle) Flush

func (h *FileHandle) Flush(ctx context.Context, req *fuse.FlushRequest) error

func (*FileHandle) ReadAll

func (handle *FileHandle) ReadAll(ctx context.Context) ([]byte, error)

func (*FileHandle) Write

func (h *FileHandle) Write(ctx context.Context, req *fuse.WriteRequest, resp *fuse.WriteResponse) error

type ZipEntry

type ZipEntry struct {
	Entry  fuse.Dirent
	Handle *FileHandle
	// contains filtered or unexported fields
}

func NewZipEntry

func NewZipEntry(parentInode uint64, name string, entType fuse.DirentType, tree *zfs.Tree[ZipEntry]) *ZipEntry

func (ZipEntry) Access

func (ze ZipEntry) Access(ctx context.Context, req *fuse.AccessRequest) error

func (*ZipEntry) AddNewFile

func (ze *ZipEntry) AddNewFile(fp *os.File) *ZipEntry

func (ZipEntry) Attr

func (ze ZipEntry) Attr(ctx context.Context, a *fuse.Attr) error

func (*ZipEntry) Create

func (ze *ZipEntry) Create(ctx context.Context, req *fuse.CreateRequest, resp *fuse.CreateResponse) (fs.Node, fs.Handle, error)

func (ZipEntry) Lookup

func (ze ZipEntry) Lookup(ctx context.Context, name string) (fs.Node, error)

func (ZipEntry) Mkdir

func (ze ZipEntry) Mkdir(ctx context.Context, req *fuse.MkdirRequest) (fs.Node, error)

func (ZipEntry) Open

func (ze ZipEntry) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenResponse) (fs.Handle, error)

func (ZipEntry) ReadDirAll

func (ze ZipEntry) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)

func (*ZipEntry) SetFP

func (ze *ZipEntry) SetFP(fp *zip.File) *ZipEntry

type ZipFS

type ZipFS struct {
	Done chan bool
	// contains filtered or unexported fields
}

func New

func New(zipFile, mountPoint string, mountOptions []string) (*ZipFS, error)

func (*ZipFS) Load

func (zf *ZipFS) Load()

func (*ZipFS) Mount

func (zipFS *ZipFS) Mount()

func (*ZipFS) Root

func (zf *ZipFS) Root() (fs.Node, error)

Jump to

Keyboard shortcuts

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