Documentation
¶
Index ¶
- type Entry
- type FS
- func (f *FS) Close() error
- func (f *FS) Entries(name string) ([]Entry, error)
- func (f *FS) Entry(name string) (Entry, error)
- func (f *FS) Glob(pattern string) ([]string, error)
- func (f *FS) Lstat(name string) (os.FileInfo, error)
- func (f *FS) Open(name string) (afero.File, error)
- func (f *FS) ReadDir(name string) ([]os.FileInfo, error)
- func (f *FS) ReadFile(name string) ([]byte, error)
- func (f *FS) Readlink(name string) (string, error)
- func (f *FS) Reads() Reads
- func (f *FS) Record()
- func (f *FS) Relative(name string) (string, error)
- func (f *FS) Resolve(name string) (string, error)
- func (f *FS) ResolveWithLinks(name string) (string, []Link, error)
- func (f *FS) Root() string
- func (f *FS) Sub(name string) (*FS, error)
- func (f *FS) Walk(name string, fn filepath.WalkFunc) error
- type Link
- type Reads
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
func From ¶
From borrows an already-rooted filesystem. The root label is used only to interpret absolute input names; all filesystem operations remain relative.
func New ¶
New pins an OS source root or scopes an in-memory filesystem. Other backends must already be confined and explicitly borrowed with From.
func (*FS) Entries ¶ added in v0.19.1289
Entries lists a directory like ReadDir, with the symlink exception of Entry.
func (*FS) Entry ¶ added in v0.19.1289
Entry is Lstat plus Readlink of name. Unlike Lstat, it accepts a symlink whose target resolves into Git metadata: Git tracks such a link as its text, and reading that text never follows the link.
func (*FS) Record ¶ added in v0.19.1289
func (f *FS) Record()
Record starts collecting the paths this filesystem and its views touch.