Documentation
¶
Index ¶
- func ContinueOnError(options *iterOptions)
- func Copy(src, dest afero.Fs) error
- func Fold[T any](fsys afero.Fs, root string, folder FoldFunc[T], initial T) (acc T, err error)
- func FromContext(ctx context.Context) afero.Fs
- func Iter(fsys afero.Fs, root string, options ...IterOption) iter.Seq3[string, fs.FileInfo, error]
- func NewWriter(w io.Writer) afero.Fs
- func OpenFirst(fsys afero.Fs, root string, options ...IterOption) (afero.File, error)
- func OpenSingle(fsys afero.Fs, root string, options ...IterOption) (afero.File, error)
- func SetContext(fs afero.Fs, ctx context.Context) error
- func SkipDirs(options *iterOptions)
- func StatFirst(fsys afero.Fs, root string, options ...IterOption) (fs.FileInfo, error)
- func StatSingle(fsys afero.Fs, root string, options ...IterOption) (fs.FileInfo, error)
- type ErrFilter
- type FoldFunc
- type IterOption
- type ReadOnlyFile
- func (r *ReadOnlyFile) Seek(offset int64, whence int) (int64, error)
- func (r *ReadOnlyFile) Sync() error
- func (r *ReadOnlyFile) Truncate(size int64) error
- func (r *ReadOnlyFile) Write(p []byte) (n int, err error)
- func (r *ReadOnlyFile) WriteAt(p []byte, off int64) (n int, err error)
- func (r *ReadOnlyFile) WriteString(s string) (ret int, err error)
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContinueOnError ¶
func ContinueOnError(options *iterOptions)
func OpenSingle ¶
func StatSingle ¶
Types ¶
type IterOption ¶
type IterOption func(*iterOptions)
func FilterErrors ¶
func FilterErrors(filter ErrFilter) IterOption
type ReadOnlyFile ¶ added in v0.2.1
type ReadOnlyFile struct{}
ReadOnlyFile can be embedded to assist with defining read-only implementations of afero.File
func (*ReadOnlyFile) Seek ¶ added in v0.2.1
func (r *ReadOnlyFile) Seek(offset int64, whence int) (int64, error)
Seek implements afero.File.
func (*ReadOnlyFile) Sync ¶ added in v0.2.1
func (r *ReadOnlyFile) Sync() error
Sync implements afero.File.
func (*ReadOnlyFile) Truncate ¶ added in v0.2.1
func (r *ReadOnlyFile) Truncate(size int64) error
Truncate implements afero.File.
func (*ReadOnlyFile) Write ¶ added in v0.2.1
func (r *ReadOnlyFile) Write(p []byte) (n int, err error)
Write implements afero.File.
func (*ReadOnlyFile) WriteAt ¶ added in v0.2.1
func (r *ReadOnlyFile) WriteAt(p []byte, off int64) (n int, err error)
WriteAt implements afero.File.
func (*ReadOnlyFile) WriteString ¶ added in v0.2.1
func (r *ReadOnlyFile) WriteString(s string) (ret int, err error)
WriteString implements afero.File.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.