zipfs

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateFSFunc

func NewCreateFSFunc() writefs.CreateFSFunc

func NewFS

func NewFS(r io.ReaderAt, size int64, name string) (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) (*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