zipfs

package
v3.0.18 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateFSFunc

func NewCreateFSFunc(logger zLogger.ZLogger) writefs.CreateFSFunc

func NewFS

func NewFS(r io.ReaderAt, size int64, name string, logger zLogger.ZLogger) (fs *zipFS, err error)

NewFS creates a new fs.FS from a readerAt and size it implements fs.FS, fs.ReadDirFS, fs.ReadFileFS, fs.StatFS, fs.SubFS, basefs.IsLockedFS

func NewFSFile

func NewFSFile(baseFS fs.FS, path string, logger zLogger.ZLogger) (*fsFile, error)

func NewFile

func NewFile(info fs.FileInfo, rc io.ReadCloser, mutex *writefs.Mutex) fs.File

Types

type OpenRawZipCloserFS

type OpenRawZipCloserFS interface {
	OpenRawZipFS
	io.Closer
}

type OpenRawZipFS

type OpenRawZipFS interface {
	fs.FS
	OpenRaw(name string) (fs.File, error)
	GetZipReader() *zip.Reader
}

Jump to

Keyboard shortcuts

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