Package-Level Type Names (total 10, all are exported)
/* sort exporteds by: | */
Basic abstract the basic operations in a storage-agnostic interface as
an extension to the Basic interface.
Create creates the named file with mode 0666 (before umask), truncating
it if it already exists. If successful, methods on the returned File can
be used for I/O; the associated file descriptor has mode O_RDWR.
Join joins any number of path elements into a single path, adding a
Separator if necessary. Join calls filepath.Clean on the result; in
particular, all empty strings are ignored. On Windows, the result is a
UNC path if and only if the first path element is a UNC path.
Open opens the named file for reading. If successful, methods on the
returned file can be used for reading; the associated file descriptor has
mode O_RDONLY.
OpenFile is the generalized open call; most users will use Open or Create
instead. It opens the named file with specified flag (O_RDONLY etc.) and
perm, (0666 etc.) if applicable. If successful, methods on the returned
File can be used for I/O.
Remove removes the named file or directory.
Rename renames (moves) oldpath to newpath. If newpath already exists and
is not a directory, Rename replaces it. OS-specific restrictions may
apply when oldpath and newpath are in different directories.
Stat returns a FileInfo describing the named file.
Filesystem(interface)
*github.com/go-git/go-billy/v5/helper/chroot.ChrootHelper
github.com/go-git/go-billy/v5/helper/polyfill.Polyfill
*github.com/go-git/go-billy/v5/osfs.OS
func github.com/go-git/go-billy/v5/helper/chroot.(*ChrootHelper).Underlying() Basic
func github.com/go-git/go-billy/v5/helper/polyfill.(*Polyfill).Underlying() Basic
func github.com/go-git/go-billy/v5/util.getUnderlyingAndPath(fs Basic, path string) (Basic, string)
func Capabilities(fs Basic) Capability
func CapabilityCheck(fs Basic, capabilities Capability) bool
func github.com/go-git/go-billy/v5/helper/chroot.New(fs Basic, base string) Filesystem
func github.com/go-git/go-billy/v5/helper/polyfill.New(fs Basic) Filesystem
func github.com/go-git/go-billy/v5/util.RemoveAll(fs Basic, path string) error
func github.com/go-git/go-billy/v5/util.TempFile(fs Basic, dir, prefix string) (f File, err error)
func github.com/go-git/go-billy/v5/util.WriteFile(fs Basic, filename string, data []byte, perm os.FileMode) error
func github.com/go-git/go-billy/v5/util.getUnderlyingAndPath(fs Basic, path string) (Basic, string)
func github.com/go-git/go-billy/v5/util.removeAll(fs Basic, path string) error
Capable interface can return the available features of a filesystem.
Capabilities returns the capabilities of a filesystem in bit flags.
*github.com/go-git/go-billy/v5/helper/chroot.ChrootHelper
*github.com/go-git/go-billy/v5/helper/polyfill.Polyfill
*github.com/go-git/go-billy/v5/osfs.OS
Change abstract the FileInfo change related operations in a storage-agnostic
interface as an extension to the Basic interface
Chmod changes the mode of the named file to mode. If the file is a
symbolic link, it changes the mode of the link's target.
Chown changes the numeric uid and gid of the named file. If the file is a
symbolic link, it changes the uid and gid of the link's target.
Chtimes changes the access and modification times of the named file,
similar to the Unix utime() or utimes() functions.
The underlying filesystem may truncate or round the values to a less
precise time unit.
Lchown changes the numeric uid and gid of the named file. If the file is
a symbolic link, it changes the uid and gid of the link itself.
Chroot abstract the chroot related operations in a storage-agnostic interface
as an extension to the Basic interface.
Chroot returns a new filesystem from the same type where the new root is
the given path. Files outside of the designated directory tree cannot be
accessed.
Root returns the root path of the filesystem.
Filesystem(interface)
*github.com/go-git/go-billy/v5/helper/chroot.ChrootHelper
*github.com/go-git/go-billy/v5/helper/polyfill.Polyfill
Dir abstract the dir related operations in a storage-agnostic interface as
an extension to the Basic interface.
MkdirAll creates a directory named path, along with any necessary
parents, and returns nil, or else returns an error. The permission bits
perm are used for all directories that MkdirAll creates. If path is/
already a directory, MkdirAll does nothing and returns nil.
ReadDir reads the directory named by dirname and returns a list of
directory entries sorted by filename.
Filesystem(interface)
*github.com/go-git/go-billy/v5/helper/chroot.ChrootHelper
*github.com/go-git/go-billy/v5/helper/polyfill.Polyfill
*github.com/go-git/go-billy/v5/osfs.OS
func github.com/go-git/go-billy/v5/util.TempDir(fs Dir, dir, prefix string) (name string, err error)
Filesystem abstract the operations in a storage-agnostic interface.
Each method implementation mimics the behavior of the equivalent functions
at the os package from the standard library.
Chroot returns a new filesystem from the same type where the new root is
the given path. Files outside of the designated directory tree cannot be
accessed.
Create creates the named file with mode 0666 (before umask), truncating
it if it already exists. If successful, methods on the returned File can
be used for I/O; the associated file descriptor has mode O_RDWR.
Join joins any number of path elements into a single path, adding a
Separator if necessary. Join calls filepath.Clean on the result; in
particular, all empty strings are ignored. On Windows, the result is a
UNC path if and only if the first path element is a UNC path.
Lstat returns a FileInfo describing the named file. If the file is a
symbolic link, the returned FileInfo describes the symbolic link. Lstat
makes no attempt to follow the link.
MkdirAll creates a directory named path, along with any necessary
parents, and returns nil, or else returns an error. The permission bits
perm are used for all directories that MkdirAll creates. If path is/
already a directory, MkdirAll does nothing and returns nil.
Open opens the named file for reading. If successful, methods on the
returned file can be used for reading; the associated file descriptor has
mode O_RDONLY.
OpenFile is the generalized open call; most users will use Open or Create
instead. It opens the named file with specified flag (O_RDONLY etc.) and
perm, (0666 etc.) if applicable. If successful, methods on the returned
File can be used for I/O.
ReadDir reads the directory named by dirname and returns a list of
directory entries sorted by filename.
Readlink returns the target path of link.
Remove removes the named file or directory.
Rename renames (moves) oldpath to newpath. If newpath already exists and
is not a directory, Rename replaces it. OS-specific restrictions may
apply when oldpath and newpath are in different directories.
Root returns the root path of the filesystem.
Stat returns a FileInfo describing the named file.
Symlink creates a symbolic-link from link to target. target may be an
absolute or relative path, and need not refer to an existing node.
Parent directories of link are created as necessary.
TempFile creates a new temporary file in the directory dir with a name
beginning with prefix, opens the file for reading and writing, and
returns the resulting *os.File. If dir is the empty string, TempFile
uses the default directory for temporary files (see os.TempDir).
Multiple programs calling TempFile simultaneously will not choose the
same file. The caller can use f.Name() to find the pathname of the file.
It is the caller's responsibility to remove the file when no longer
needed.
*github.com/go-git/go-billy/v5/helper/chroot.ChrootHelper
*github.com/go-git/go-billy/v5/helper/polyfill.Polyfill
T : Basic
T : Chroot
T : Dir
T : Symlink
T : TempFile
func Chroot.Chroot(path string) (Filesystem, error)
func Filesystem.Chroot(path string) (Filesystem, error)
func github.com/go-git/go-billy/v5/helper/chroot.New(fs Basic, base string) Filesystem
func github.com/go-git/go-billy/v5/helper/chroot.(*ChrootHelper).Chroot(path string) (Filesystem, error)
func github.com/go-git/go-billy/v5/helper/polyfill.New(fs Basic) Filesystem
func github.com/go-git/go-billy/v5/helper/polyfill.(*Polyfill).Chroot(path string) (Filesystem, error)
func github.com/go-git/go-billy/v5/osfs.New(baseDir string) Filesystem
func github.com/go-git/go-git/v5/storage/filesystem.(*Storage).Filesystem() Filesystem
func github.com/go-git/go-git/v5/storage/filesystem/dotgit.(*DotGit).Fs() Filesystem
func github.com/go-git/go-git/v5/storage/filesystem/dotgit.(*DotGit).Module(name string) (Filesystem, error)
func github.com/go-git/go-git/v5.dotGitFileToOSFilesystem(path string, fs Filesystem) (bfs Filesystem, err error)
func github.com/go-git/go-git/v5.dotGitToOSFilesystems(path string, detect bool) (dot, wt Filesystem, err error)
func github.com/go-git/go-billy/v5/util.Glob(fs Filesystem, pattern string) (matches []string, err error)
func github.com/go-git/go-git/v5.Clone(s storage.Storer, worktree Filesystem, o *git.CloneOptions) (*git.Repository, error)
func github.com/go-git/go-git/v5.CloneContext(ctx context.Context, s storage.Storer, worktree Filesystem, o *git.CloneOptions) (*git.Repository, error)
func github.com/go-git/go-git/v5.Init(s storage.Storer, worktree Filesystem) (*git.Repository, error)
func github.com/go-git/go-git/v5.Open(s storage.Storer, worktree Filesystem) (*git.Repository, error)
func github.com/go-git/go-git/v5/plumbing/format/gitignore.LoadGlobalPatterns(fs Filesystem) (ps []gitignore.Pattern, err error)
func github.com/go-git/go-git/v5/plumbing/format/gitignore.LoadSystemPatterns(fs Filesystem) (ps []gitignore.Pattern, err error)
func github.com/go-git/go-git/v5/plumbing/format/gitignore.ReadPatterns(fs Filesystem, path []string) (ps []gitignore.Pattern, err error)
func github.com/go-git/go-git/v5/plumbing/format/packfile.NewFSObject(hash plumbing.Hash, finalType plumbing.ObjectType, offset int64, contentSize int64, index idxfile.Index, fs Filesystem, path string, cache cache.Object) *packfile.FSObject
func github.com/go-git/go-git/v5/plumbing/format/packfile.NewPackfile(index idxfile.Index, fs Filesystem, file File) *packfile.Packfile
func github.com/go-git/go-git/v5/plumbing/format/packfile.NewPackfileWithCache(index idxfile.Index, fs Filesystem, file File, cache cache.Object) *packfile.Packfile
func github.com/go-git/go-git/v5/plumbing/transport/server.NewFilesystemLoader(base Filesystem) server.Loader
func github.com/go-git/go-git/v5/storage/filesystem.NewPackfileIter(fs Filesystem, f File, idxFile File, t plumbing.ObjectType, keepPack bool) (storer.EncodedObjectIter, error)
func github.com/go-git/go-git/v5/storage/filesystem.NewStorage(fs Filesystem, cache cache.Object) *filesystem.Storage
func github.com/go-git/go-git/v5/storage/filesystem.NewStorageWithOptions(fs Filesystem, cache cache.Object, ops filesystem.Options) *filesystem.Storage
func github.com/go-git/go-git/v5/storage/filesystem/dotgit.New(fs Filesystem) *dotgit.DotGit
func github.com/go-git/go-git/v5/storage/filesystem/dotgit.NewWithOptions(fs Filesystem, o dotgit.Options) *dotgit.DotGit
func github.com/go-git/go-git/v5/utils/merkletrie/filesystem.NewRootNode(fs Filesystem, submodules map[string]plumbing.Hash) noder.Noder
func github.com/go-git/go-billy/v5/helper/chroot.newFile(fs Filesystem, f File, filename string) File
func github.com/go-git/go-billy/v5/util.glob(fs Filesystem, dir, pattern string, matches []string) (m []string, e error)
func github.com/go-git/go-billy/v5/util.readdirnames(fs Filesystem, dir string) ([]string, error)
func github.com/go-git/go-git/v5.createDotGitFile(worktree, storage Filesystem) error
func github.com/go-git/go-git/v5.doCleanDirectories(fs Filesystem, dir string) error
func github.com/go-git/go-git/v5.dotGitFileToOSFilesystem(path string, fs Filesystem) (bfs Filesystem, err error)
func github.com/go-git/go-git/v5.newRepository(s storage.Storer, worktree Filesystem) *git.Repository
func github.com/go-git/go-git/v5.rmFileAndDirIfEmpty(fs Filesystem, name string) error
func github.com/go-git/go-git/v5.setConfigWorktree(r *git.Repository, worktree, storage Filesystem) error
func github.com/go-git/go-git/v5.setWorktreeAndStoragePaths(r *git.Repository, worktree Filesystem) error
func github.com/go-git/go-git/v5/plumbing/format/gitignore.loadPatterns(fs Filesystem, path string) (ps []gitignore.Pattern, err error)
func github.com/go-git/go-git/v5/plumbing/format/gitignore.readIgnoreFile(fs Filesystem, path []string, ignoreFile string) (ps []gitignore.Pattern, err error)
func github.com/go-git/go-git/v5/storage/filesystem.newPackfileIter(fs Filesystem, f File, t plumbing.ObjectType, seen map[plumbing.Hash]struct{}, index idxfile.Index, cache cache.Object, keepPack bool) (storer.EncodedObjectIter, error)
func github.com/go-git/go-git/v5/storage/filesystem/dotgit.newObjectWriter(fs Filesystem) (*dotgit.ObjectWriter, error)
func github.com/go-git/go-git/v5/storage/filesystem/dotgit.newPackWrite(fs Filesystem) (*dotgit.PackWriter, error)
Symlink abstract the symlink related operations in a storage-agnostic
interface as an extension to the Basic interface.
Lstat returns a FileInfo describing the named file. If the file is a
symbolic link, the returned FileInfo describes the symbolic link. Lstat
makes no attempt to follow the link.
Readlink returns the target path of link.
Symlink creates a symbolic-link from link to target. target may be an
absolute or relative path, and need not refer to an existing node.
Parent directories of link are created as necessary.
Filesystem(interface)
*github.com/go-git/go-billy/v5/helper/chroot.ChrootHelper
*github.com/go-git/go-billy/v5/helper/polyfill.Polyfill
*github.com/go-git/go-billy/v5/osfs.OS
TempFile creates a new temporary file in the directory dir with a name
beginning with prefix, opens the file for reading and writing, and
returns the resulting *os.File. If dir is the empty string, TempFile
uses the default directory for temporary files (see os.TempDir).
Multiple programs calling TempFile simultaneously will not choose the
same file. The caller can use f.Name() to find the pathname of the file.
It is the caller's responsibility to remove the file when no longer
needed.
Filesystem(interface)
*github.com/go-git/go-billy/v5/helper/chroot.ChrootHelper
*github.com/go-git/go-billy/v5/helper/polyfill.Polyfill
*github.com/go-git/go-billy/v5/osfs.OS
Package-Level Functions (total 2, both are exported)
Capabilities returns the features supported by a filesystem. If the FS
does not implement Capable interface it returns all features.
CapabilityCheck tests the filesystem for the provided capabilities and
returns true in case it supports all of them.
Package-Level Variables (total 3, all are exported)
Package-Level Constants (total 8, all are exported)
AllCapabilities lists all capable features.
DefaultCapabilities lists all capable features supported by filesystems
without Capability interface. This list should not be changed until a
major version is released.
LockCapability is the ability to lock a file.
ReadAndWriteCapability is the ability to open a file in read and write mode.
ReadCapability means that the fs is readable.
SeekCapability means it is able to move position inside the file.
TruncateCapability means that a file can be truncated.
WriteCapability means that the fs is writable.
The pages are generated with Goldsv0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.