filter

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFs

func NewFs(src afero.Fs, predicate Predicate) afero.Fs

Types

type File added in v0.0.29

type File struct {
	// contains filtered or unexported fields
}

func (*File) Close added in v0.0.29

func (f *File) Close() error

Close implements afero.File.

func (*File) Name added in v0.0.29

func (f *File) Name() string

Name implements afero.File.

func (*File) Read added in v0.0.29

func (f *File) Read(p []byte) (n int, err error)

Read implements afero.File.

func (*File) ReadAt added in v0.0.29

func (f *File) ReadAt(p []byte, off int64) (n int, err error)

ReadAt implements afero.File.

func (*File) Readdir added in v0.0.29

func (f *File) Readdir(count int) (res []fs.FileInfo, err error)

Readdir implements afero.File.

func (*File) Readdirnames added in v0.0.29

func (f *File) Readdirnames(n int) (names []string, err error)

Readdirnames implements afero.File.

func (*File) Seek added in v0.0.29

func (f *File) Seek(offset int64, whence int) (int64, error)

Seek implements afero.File.

func (*File) Stat added in v0.0.29

func (f *File) Stat() (fs.FileInfo, error)

Stat implements afero.File.

func (*File) Sync added in v0.0.29

func (f *File) Sync() error

Sync implements afero.File.

func (*File) Truncate added in v0.0.29

func (f *File) Truncate(size int64) error

Truncate implements afero.File.

func (*File) Write added in v0.0.29

func (f *File) Write(p []byte) (n int, err error)

Write implements afero.File.

func (*File) WriteAt added in v0.0.29

func (f *File) WriteAt(p []byte, off int64) (n int, err error)

WriteAt implements afero.File.

func (*File) WriteString added in v0.0.29

func (f *File) WriteString(s string) (ret int, err error)

WriteString implements afero.File.

type Fs

type Fs struct {
	// contains filtered or unexported fields
}

func (*Fs) Chmod

func (f *Fs) Chmod(name string, mode fs.FileMode) error

Chmod implements afero.Fs.

func (*Fs) Chown

func (f *Fs) Chown(name string, uid int, gid int) error

Chown implements afero.Fs.

func (*Fs) Chtimes

func (f *Fs) Chtimes(name string, atime time.Time, mtime time.Time) error

Chtimes implements afero.Fs.

func (*Fs) Create

func (f *Fs) Create(name string) (afero.File, error)

Create implements afero.Fs.

func (*Fs) Mkdir

func (f *Fs) Mkdir(name string, perm fs.FileMode) error

Mkdir implements afero.Fs.

func (*Fs) MkdirAll

func (f *Fs) MkdirAll(path string, perm fs.FileMode) error

MkdirAll implements afero.Fs.

func (*Fs) Name

func (f *Fs) Name() string

Name implements afero.Fs.

func (*Fs) Open

func (f *Fs) Open(name string) (afero.File, error)

Open implements afero.Fs.

func (*Fs) OpenFile

func (f *Fs) OpenFile(name string, flag int, perm fs.FileMode) (afero.File, error)

OpenFile implements afero.Fs.

func (*Fs) Remove

func (f *Fs) Remove(name string) error

Remove implements afero.Fs.

func (*Fs) RemoveAll

func (f *Fs) RemoveAll(path string) error

RemoveAll implements afero.Fs.

func (*Fs) Rename

func (f *Fs) Rename(oldname string, newname string) error

Rename implements afero.Fs.

func (*Fs) Stat

func (f *Fs) Stat(name string) (fs.FileInfo, error)

Stat implements afero.Fs.

type Predicate

type Predicate func(string) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL