Documentation
¶
Index ¶
- type ContextFs
- func (c *ContextFs) Chmod(ctx context.Context, name string, mode fs.FileMode) error
- func (c *ContextFs) Chown(ctx context.Context, name string, uid int, gid int) error
- func (c *ContextFs) Chtimes(ctx context.Context, name string, atime time.Time, mtime time.Time) error
- func (c *ContextFs) Create(ctx context.Context, name string) (afero.File, error)
- func (c *ContextFs) Mkdir(ctx context.Context, name string, perm fs.FileMode) error
- func (c *ContextFs) MkdirAll(ctx context.Context, path string, perm fs.FileMode) error
- func (c *ContextFs) Name() string
- func (c *ContextFs) Open(ctx context.Context, name string) (afero.File, error)
- func (c *ContextFs) OpenFile(ctx context.Context, name string, flag int, perm fs.FileMode) (afero.File, error)
- func (c *ContextFs) Remove(ctx context.Context, name string) error
- func (c *ContextFs) RemoveAll(ctx context.Context, path string) error
- func (c *ContextFs) Rename(ctx context.Context, oldname string, newname string) error
- func (c *ContextFs) Stat(ctx context.Context, name string) (fs.FileInfo, error)
- 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) ([]fs.FileInfo, error)
- func (f *File) Readdirnames(n int) ([]string, 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 FileInfo
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextFs ¶
type ContextFs struct {
ChmodFunc func(context.Context, string, fs.FileMode) error
ChownFunc func(context.Context, string, int, int) error
ChtimesFunc func(context.Context, string, time.Time, time.Time) error
CreateFunc func(context.Context, string) (afero.File, error)
MkdirFunc func(context.Context, string, fs.FileMode) error
MkdirAllFunc func(context.Context, string, fs.FileMode) error
OpenFunc func(context.Context, string) (afero.File, error)
OpenFileFunc func(context.Context, string, int, fs.FileMode) (afero.File, error)
RemoveFunc func(context.Context, string) error
RemoveAllFunc func(context.Context, string) error
RenameFunc func(context.Context, string, string) error
StatFunc func(context.Context, string) (fs.FileInfo, error)
}
func (*ContextFs) Chtimes ¶
func (c *ContextFs) Chtimes(ctx context.Context, name string, atime time.Time, mtime time.Time) error
Chtimes implements context.Fs.
func (*ContextFs) OpenFile ¶
func (c *ContextFs) OpenFile(ctx context.Context, name string, flag int, perm fs.FileMode) (afero.File, error)
OpenFile implements context.Fs.
type File ¶
type File struct {
CloseFunc func() error
NameFunc func() string
ReadFunc func([]byte) (int, error)
ReadAtFunc func([]byte, int64) (int, error)
ReaddirFunc func(int) ([]fs.FileInfo, error)
ReaddirnamesFunc func(int) ([]string, error)
SeekFunc func(int64, int) (int64, error)
StatFunc func() (fs.FileInfo, error)
SyncFunc func() error
TruncateFunc func(int64) error
WriteFunc func([]byte) (int, error)
WriteAtFunc func([]byte, int64) (int, error)
WriteStringFunc func(string) (int, error)
}
func (*File) Readdirnames ¶
Readdirnames implements afero.File.
type FileInfo ¶
type Fs ¶
type Fs struct {
ChmodFunc func(string, fs.FileMode) error
ChownFunc func(string, int, int) error
ChtimesFunc func(string, time.Time, time.Time) error
CreateFunc func(string) (afero.File, error)
MkdirAllFunc func(string, fs.FileMode) error
MkdirFunc func(string, fs.FileMode) error
OpenFunc func(string) (afero.File, error)
OpenFileFunc func(string, int, fs.FileMode) (afero.File, error)
RemoveAllFunc func(string) error
RemoveFunc func(string) error
RenameFunc func(string, string) error
StatFunc func(string) (fs.FileInfo, error)
}
Click to show internal directories.
Click to hide internal directories.