aferofs

package
v0.0.0-...-2fb99a0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCrossRepository = errors.New("cross-repository operation not allowed")

Functions

func NewFastReadFs

func NewFastReadFs(source afero.Fs) afero.Fs

func NewGitDirFs

func NewGitDirFs(worktree afero.Fs, git afero.Fs) afero.Fs

NewGitDirFs groups a worktree and a git dir from different locations

func NewIndexFile

func NewIndexFile(ctx context.Context, name string, flag int, perm os.FileMode, cli index.FSClient) (afero.File, error)

func NewIndexFs

func NewIndexFs(path string) afero.Fs

Types

type FastReadFile

type FastReadFile struct {
	afero.File
}

func (*FastReadFile) Readdir

func (f *FastReadFile) Readdir(count int) ([]os.FileInfo, error)

type FastReadFs

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

func (*FastReadFs) Chmod

func (r *FastReadFs) Chmod(n string, m os.FileMode) error

func (*FastReadFs) Chtimes

func (r *FastReadFs) Chtimes(n string, a, m time.Time) error

func (*FastReadFs) Create

func (r *FastReadFs) Create(n string) (afero.File, error)

func (*FastReadFs) LstatIfPossible

func (r *FastReadFs) LstatIfPossible(name string) (os.FileInfo, bool, error)

func (*FastReadFs) Mkdir

func (r *FastReadFs) Mkdir(n string, p os.FileMode) error

func (*FastReadFs) MkdirAll

func (r *FastReadFs) MkdirAll(n string, p os.FileMode) error

func (*FastReadFs) Name

func (r *FastReadFs) Name() string

func (*FastReadFs) Open

func (r *FastReadFs) Open(n string) (afero.File, error)

func (*FastReadFs) OpenFile

func (r *FastReadFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)

func (*FastReadFs) ReadDir

func (r *FastReadFs) ReadDir(dirName string) ([]os.FileInfo, error)

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

func (*FastReadFs) Stat

func (r *FastReadFs) Stat(name string) (os.FileInfo, error)

type File

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

func (*File) Close

func (f *File) Close() error

func (*File) Name

func (f *File) Name() string

func (*File) Read

func (f *File) Read(b []byte) (int, error)

func (*File) ReadAt

func (f *File) ReadAt(b []byte, off int64) (int, error)

func (*File) Readdir

func (f *File) Readdir(count int) ([]os.FileInfo, error)

func (*File) Readdirnames

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

func (*File) Seek

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

func (*File) Stat

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

func (*File) Sync

func (f *File) Sync() error

func (*File) Truncate

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

func (*File) Write

func (f *File) Write(b []byte) (int, error)

func (*File) WriteAt

func (f *File) WriteAt(b []byte, off int64) (int, error)

func (*File) WriteString

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

type GitDirFs

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

func (*GitDirFs) Chmod

func (f *GitDirFs) Chmod(name string, mode os.FileMode) error

func (*GitDirFs) Chtimes

func (f *GitDirFs) Chtimes(name string, added, modified time.Time) error

func (*GitDirFs) Create

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

func (*GitDirFs) LstatIfPossible

func (f *GitDirFs) LstatIfPossible(name string) (os.FileInfo, bool, error)

func (*GitDirFs) Mkdir

func (f *GitDirFs) Mkdir(name string, perm os.FileMode) error

func (*GitDirFs) MkdirAll

func (f *GitDirFs) MkdirAll(path string, perm os.FileMode) error

func (*GitDirFs) Name

func (f *GitDirFs) Name() string

func (*GitDirFs) Open

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

func (*GitDirFs) OpenFile

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

func (*GitDirFs) Remove

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

func (*GitDirFs) RemoveAll

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

func (*GitDirFs) Rename

func (f *GitDirFs) Rename(oldName, newName string) error

func (*GitDirFs) Stat

func (f *GitDirFs) Stat(name string) (os.FileInfo, error)

type IndexFs

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

func (*IndexFs) Chmod

func (f *IndexFs) Chmod(name string, mode os.FileMode) error

func (*IndexFs) Chtimes

func (f *IndexFs) Chtimes(name string, added, modified time.Time) error

func (*IndexFs) Create

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

func (*IndexFs) LstatIfPossible

func (f *IndexFs) LstatIfPossible(name string) (os.FileInfo, bool, error)

func (*IndexFs) Mkdir

func (f *IndexFs) Mkdir(name string, perm os.FileMode) error

func (*IndexFs) MkdirAll

func (f *IndexFs) MkdirAll(path string, perm os.FileMode) error

func (*IndexFs) Name

func (f *IndexFs) Name() string

func (*IndexFs) Open

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

func (*IndexFs) OpenFile

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

func (*IndexFs) ReadDir

func (f *IndexFs) ReadDir(name string) ([]os.FileInfo, error)

func (*IndexFs) Remove

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

func (*IndexFs) RemoveAll

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

func (*IndexFs) Rename

func (f *IndexFs) Rename(oldName, newName string) error

func (*IndexFs) Stat

func (f *IndexFs) Stat(name string) (os.FileInfo, error)

Jump to

Keyboard shortcuts

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