zipwritefs

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZipWriteFs

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

func New

func New(writer io.Writer) *ZipWriteFs

func (*ZipWriteFs) Chmod

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

Chmod changes the mode of the named file to mode.

func (*ZipWriteFs) Chtimes

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

Chtimes changes the access and modification times of the named file

func (*ZipWriteFs) Close

func (fs *ZipWriteFs) Close() error

func (*ZipWriteFs) Create

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

Create creates a file in the filesystem, returning the file and an error, if any happens.

func (*ZipWriteFs) Mkdir

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

Mkdir creates a directory in the filesystem, return an error if any happens.

func (*ZipWriteFs) MkdirAll

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

MkdirAll creates a directory path and all parents that does not exist yet.

func (*ZipWriteFs) Name

func (fs *ZipWriteFs) Name() string

The name of this FileSystem

func (*ZipWriteFs) Open

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

Open opens a file, returning it or an error, if any happens.

func (*ZipWriteFs) OpenFile

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

OpenFile opens a file using the given flags and the given mode.

func (*ZipWriteFs) Remove

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

Remove removes a file identified by name, returning an error, if any happens.

func (*ZipWriteFs) RemoveAll

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

RemoveAll removes a directory path and any children it contains. It does not fail if the path does not exist (return nil).

func (*ZipWriteFs) Rename

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

Rename renames a file.

func (*ZipWriteFs) Stat

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

Stat returns a FileInfo describing the named file, or an error, if any happens.

type ZipWriteItem

type ZipWriteItem struct {
	io.Writer
	// contains filtered or unexported fields
}

func (ZipWriteItem) Close

func (item ZipWriteItem) Close() error

func (ZipWriteItem) Name

func (item ZipWriteItem) Name() string

func (ZipWriteItem) Read

func (item ZipWriteItem) Read(b []byte) (n int, err error)

func (ZipWriteItem) ReadAt

func (item ZipWriteItem) ReadAt(b []byte, off int64) (n int, err error)

func (ZipWriteItem) Readdir

func (item ZipWriteItem) Readdir(count int) ([]os.FileInfo, error)

func (ZipWriteItem) Readdirnames

func (item ZipWriteItem) Readdirnames(n int) ([]string, error)

func (ZipWriteItem) Seek

func (item ZipWriteItem) Seek(offset int64, whence int) (ret int64, err error)

func (ZipWriteItem) Stat

func (item ZipWriteItem) Stat() (os.FileInfo, error)

func (ZipWriteItem) Sync

func (item ZipWriteItem) Sync() error

func (ZipWriteItem) Truncate

func (item ZipWriteItem) Truncate(size int64) error

func (ZipWriteItem) WriteAt

func (item ZipWriteItem) WriteAt(b []byte, off int64) (n int, err error)

func (ZipWriteItem) WriteString

func (item ZipWriteItem) WriteString(s string) (n int, err error)

Jump to

Keyboard shortcuts

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