Documentation ¶
Index ¶
- type ZipWriteFs
- func (fs *ZipWriteFs) Chmod(name string, mode os.FileMode) error
- func (fs *ZipWriteFs) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (fs *ZipWriteFs) Close() error
- func (fs *ZipWriteFs) Create(name string) (afero.File, error)
- func (fs *ZipWriteFs) Mkdir(name string, perm os.FileMode) error
- func (fs *ZipWriteFs) MkdirAll(path string, perm os.FileMode) error
- func (fs *ZipWriteFs) Name() string
- func (fs *ZipWriteFs) Open(name string) (afero.File, error)
- func (fs *ZipWriteFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)
- func (fs *ZipWriteFs) Remove(name string) error
- func (fs *ZipWriteFs) RemoveAll(path string) error
- func (fs *ZipWriteFs) Rename(oldname, newname string) error
- func (fs *ZipWriteFs) Stat(name string) (os.FileInfo, error)
- type ZipWriteItem
- func (item ZipWriteItem) Close() error
- func (item ZipWriteItem) Name() string
- func (item ZipWriteItem) Read(b []byte) (n int, err error)
- func (item ZipWriteItem) ReadAt(b []byte, off int64) (n int, err error)
- func (item ZipWriteItem) Readdir(count int) ([]os.FileInfo, error)
- func (item ZipWriteItem) Readdirnames(n int) ([]string, error)
- func (item ZipWriteItem) Seek(offset int64, whence int) (ret int64, err error)
- func (item ZipWriteItem) Stat() (os.FileInfo, error)
- func (item ZipWriteItem) Sync() error
- func (item ZipWriteItem) Truncate(size int64) error
- func (item ZipWriteItem) WriteAt(b []byte, off int64) (n int, err error)
- func (item ZipWriteItem) WriteString(s string) (n int, err error)
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 ¶
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) 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 ¶
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.
type ZipWriteItem ¶
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) 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)