Documentation ¶
Index ¶
- Variables
- func NewFastReadFs(source afero.Fs) afero.Fs
- func NewGitDirFs(worktree afero.Fs, git afero.Fs) afero.Fs
- func NewIndexFile(ctx context.Context, name string, flag int, perm os.FileMode, ...) (afero.File, error)
- func NewIndexFs(path string) afero.Fs
- type FastReadFile
- type FastReadFs
- func (r *FastReadFs) Chmod(n string, m os.FileMode) error
- func (r *FastReadFs) Chtimes(n string, a, m time.Time) error
- func (r *FastReadFs) Create(n string) (afero.File, error)
- func (r *FastReadFs) LstatIfPossible(name string) (os.FileInfo, bool, error)
- func (r *FastReadFs) Mkdir(n string, p os.FileMode) error
- func (r *FastReadFs) MkdirAll(n string, p os.FileMode) error
- func (r *FastReadFs) Name() string
- func (r *FastReadFs) Open(n string) (afero.File, error)
- func (r *FastReadFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)
- func (r *FastReadFs) ReadDir(dirName string) ([]os.FileInfo, error)
- func (r *FastReadFs) Remove(n string) error
- func (r *FastReadFs) RemoveAll(p string) error
- func (r *FastReadFs) Rename(o, n string) error
- func (r *FastReadFs) Stat(name string) (os.FileInfo, error)
- type File
- func (f *File) Close() error
- func (f *File) Name() string
- func (f *File) Read(b []byte) (int, error)
- func (f *File) ReadAt(b []byte, off int64) (int, error)
- func (f *File) Readdir(count int) ([]os.FileInfo, error)
- func (f *File) Readdirnames(n int) ([]string, error)
- func (f *File) Seek(offset int64, whence int) (int64, error)
- func (f *File) Stat() (os.FileInfo, error)
- func (f *File) Sync() error
- func (f *File) Truncate(size int64) error
- func (f *File) Write(b []byte) (int, error)
- func (f *File) WriteAt(b []byte, off int64) (int, error)
- func (f *File) WriteString(s string) (int, error)
- type GitDirFs
- func (f *GitDirFs) Chmod(name string, mode os.FileMode) error
- func (f *GitDirFs) Chtimes(name string, added, modified time.Time) error
- func (f *GitDirFs) Create(name string) (afero.File, error)
- func (f *GitDirFs) LstatIfPossible(name string) (os.FileInfo, bool, error)
- func (f *GitDirFs) Mkdir(name string, perm os.FileMode) error
- func (f *GitDirFs) MkdirAll(path string, perm os.FileMode) error
- func (f *GitDirFs) Name() string
- func (f *GitDirFs) Open(name string) (afero.File, error)
- func (f *GitDirFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)
- func (f *GitDirFs) Remove(name string) error
- func (f *GitDirFs) RemoveAll(path string) error
- func (f *GitDirFs) Rename(oldName, newName string) error
- func (f *GitDirFs) Stat(name string) (os.FileInfo, error)
- type IndexFs
- func (f *IndexFs) Chmod(name string, mode os.FileMode) error
- func (f *IndexFs) Chtimes(name string, added, modified time.Time) error
- func (f *IndexFs) Create(name string) (afero.File, error)
- func (f *IndexFs) LstatIfPossible(name string) (os.FileInfo, bool, error)
- func (f *IndexFs) Mkdir(name string, perm os.FileMode) error
- func (f *IndexFs) MkdirAll(path string, perm os.FileMode) error
- func (f *IndexFs) Name() string
- func (f *IndexFs) Open(name string) (afero.File, error)
- func (f *IndexFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)
- func (f *IndexFs) ReadDir(name string) ([]os.FileInfo, error)
- func (f *IndexFs) Remove(name string) error
- func (f *IndexFs) RemoveAll(path string) error
- func (f *IndexFs) Rename(oldName, newName string) error
- func (f *IndexFs) Stat(name string) (os.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCrossRepository = errors.New("cross-repository operation not allowed")
Functions ¶
func NewGitDirFs ¶
NewGitDirFs groups a worktree and a git dir from different locations
func NewIndexFile ¶
func NewIndexFs ¶
Types ¶
type FastReadFile ¶
type FastReadFs ¶
type FastReadFs struct {
// contains filtered or unexported fields
}
func (*FastReadFs) LstatIfPossible ¶
func (*FastReadFs) Name ¶
func (r *FastReadFs) Name() string
func (*FastReadFs) Remove ¶
func (r *FastReadFs) Remove(n string) error
func (*FastReadFs) RemoveAll ¶
func (r *FastReadFs) RemoveAll(p string) error
func (*FastReadFs) Rename ¶
func (r *FastReadFs) Rename(o, n string) error
type GitDirFs ¶
type GitDirFs struct {
// contains filtered or unexported fields
}
func (*GitDirFs) LstatIfPossible ¶
Click to show internal directories.
Click to hide internal directories.