zipfs

package
v0.0.0-...-5df6b2a Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrOutOfRange = errors.New("out of range")

Functions

func New

func New(r *zip.Reader) fs.FS

Types

type FS

type FS struct {
	// contains filtered or unexported fields
}

func (*FS) Chmod

func (fs *FS) Chmod(name string, mode os.FileMode) error

func (*FS) Chown

func (fs *FS) Chown(name string, uid, gid int) error

func (*FS) Chtimes

func (fs *FS) Chtimes(name string, atime time.Time, mtime time.Time) error

func (*FS) Create

func (fs *FS) Create(name string) (fs.File, error)

func (*FS) Mkdir

func (fs *FS) Mkdir(name string, perm fs.FileMode) error

func (*FS) MkdirAll

func (fs *FS) MkdirAll(path string, perm fs.FileMode) error

func (*FS) Name

func (fs *FS) Name() string

func (*FS) Open

func (fs *FS) Open(name string) (fs.File, error)

func (*FS) OpenFile

func (fs *FS) OpenFile(name string, flag int, perm fs.FileMode) (fs.File, error)

func (*FS) Remove

func (fs *FS) Remove(name string) error

func (*FS) RemoveAll

func (fs *FS) RemoveAll(path string) error

func (*FS) Rename

func (fs *FS) Rename(oldname, newname string) error

func (*FS) Stat

func (fs *FS) Stat(name string) (fs.FileInfo, error)

type File

type File struct {
	// contains filtered or unexported fields
}

func (*File) Close

func (f *File) Close() (err error)

func (*File) Name

func (f *File) Name() string

func (*File) Read

func (f *File) Read(p []byte) (n int, err error)

func (*File) ReadAt

func (f *File) ReadAt(p []byte, off int64) (n int, err error)

func (*File) Readdir

func (f *File) Readdir(count int) (fi []fs.FileInfo, err error)

func (*File) Readdirnames

func (f *File) Readdirnames(count int) (names []string, err error)

func (*File) Seek

func (f *File) Seek(offset int64, whence int) (int64, error)

func (*File) Stat

func (f *File) Stat() (fs.FileInfo, error)

func (*File) Sync

func (f *File) Sync() error

func (*File) Truncate

func (f *File) Truncate(size int64) error

func (*File) Write

func (f *File) Write(p []byte) (n int, err error)

func (*File) WriteAt

func (f *File) WriteAt(p []byte, off int64) (n int, err error)

func (*File) WriteString

func (f *File) WriteString(s string) (ret int, err error)

Jump to

Keyboard shortcuts

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