Documentation ¶
Overview ¶
Package fslog provides an afero FS logging package
Index ¶
- func LoadFS(src afero.Fs, logger log.Logger) (afero.Fs, error)
- type File
- func (f *File) Close() error
- func (f *File) Name() string
- func (f *File) Read(p []byte) (int, error)
- func (f *File) ReadAt(p []byte, off int64) (int, error)
- func (f *File) Readdir(count int) ([]os.FileInfo, error)
- func (f *File) Readdirnames(n int) ([]string, error)
- func (f *File) Seek(offset int64, whence int) (int64, error)
- func (f *File) Stat() (os.FileInfo, error)
- func (f *File) Sync() error
- func (f *File) Truncate(size int64) error
- func (f *File) Write(p []byte) (int, error)
- func (f *File) WriteAt(p []byte, off int64) (int, error)
- func (f *File) WriteString(str string) (int, error)
- type Fs
- func (f *Fs) Chmod(name string, mode os.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 os.FileMode) error
- func (f *Fs) MkdirAll(path string, perm os.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 os.FileMode) (afero.File, error)
- func (f *Fs) Remove(name string) error
- func (f *Fs) RemoveAll(path string) error
- func (f *Fs) Rename(oldname, newname string) error
- func (f *Fs) Stat(name string) (os.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File is a wrapper to log interactions around file accesses
func (*File) Readdirnames ¶
Readdirnames won't be logged
type Fs ¶
type Fs struct {
// contains filtered or unexported fields
}
Fs is a wrapper to log interactions around file system accesses
Click to show internal directories.
Click to hide internal directories.