Documentation
¶
Overview ¶
Package zipwrite provides good enough write-only file system implementation for the artifactcollector to create zip files.
Index ¶
- type FS
- func (fs *FS) Chmod(name string, mode os.FileMode) error
- func (fs *FS) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (fs *FS) Close() error
- func (fs *FS) Create(name string) (afero.File, error)
- func (fs *FS) Mkdir(name string, perm os.FileMode) error
- func (fs *FS) MkdirAll(path string, perm os.FileMode) error
- func (fs *FS) Name() string
- func (fs *FS) Open(name string) (afero.File, error)
- func (fs *FS) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)
- func (fs *FS) Remove(name string) error
- func (fs *FS) RemoveAll(path string) error
- func (fs *FS) Rename(oldname, newname string) error
- func (fs *FS) Stat(name string) (os.FileInfo, error)
- type Item
- func (i Item) Close() error
- func (i Item) Name() string
- func (i Item) Read(b []byte) (n int, err error)
- func (i Item) ReadAt(b []byte, off int64) (n int, err error)
- func (i Item) Readdir(count int) ([]os.FileInfo, error)
- func (i Item) Readdirnames(n int) ([]string, error)
- func (i Item) Seek(offset int64, whence int) (ret int64, err error)
- func (i Item) Stat() (os.FileInfo, error)
- func (i Item) Sync() error
- func (i Item) Truncate(size int64) error
- func (i Item) WriteAt(b []byte, off int64) (n int, err error)
- func (i Item) WriteString(s string) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS implements a write-only file system for zip files.
func (*FS) Close ¶
Close closes the file freeing the resource. Usually additional IO operations fail after closing.
func (*FS) Create ¶
Create creates a file in the filesystem, returning the file and an error, if any happens.
type Item ¶
Item describes files and directories in the XXX file system.
func (Item) Readdirnames ¶
Readdirnames fails in a write-only fs.
Click to show internal directories.
Click to hide internal directories.