Documentation ¶
Index ¶
- func NewFs(src afero.Fs, predicate Predicate) afero.Fs
- type File
- func (f *File) Close() error
- func (f *File) Name() string
- func (f *File) Read(p []byte) (n int, err error)
- func (f *File) ReadAt(p []byte, off int64) (n int, err error)
- func (f *File) Readdir(count int) (res []fs.FileInfo, err error)
- func (f *File) Readdirnames(n int) (names []string, err error)
- func (f *File) Seek(offset int64, whence int) (int64, error)
- func (f *File) Stat() (fs.FileInfo, error)
- func (f *File) Sync() error
- func (f *File) Truncate(size int64) error
- func (f *File) Write(p []byte) (n int, err error)
- func (f *File) WriteAt(p []byte, off int64) (n int, err error)
- func (f *File) WriteString(s string) (ret int, err error)
- type Fs
- func (f *Fs) Chmod(name string, mode fs.FileMode) error
- func (f *Fs) Chown(name string, uid int, gid int) error
- func (f *Fs) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (f *Fs) Create(name string) (afero.File, error)
- func (f *Fs) Mkdir(name string, perm fs.FileMode) error
- func (f *Fs) MkdirAll(path string, perm fs.FileMode) error
- func (f *Fs) Name() string
- func (f *Fs) Open(name string) (afero.File, error)
- func (f *Fs) OpenFile(name string, flag int, perm fs.FileMode) (afero.File, error)
- func (f *Fs) Remove(name string) error
- func (f *Fs) RemoveAll(path string) error
- func (f *Fs) Rename(oldname string, newname string) error
- func (f *Fs) Stat(name string) (fs.FileInfo, error)
- type Predicate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶ added in v0.0.29
type File struct {
// contains filtered or unexported fields
}
func (*File) Readdirnames ¶ added in v0.0.29
Readdirnames implements afero.File.
type Fs ¶
type Fs struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.