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