Documentation
¶
Index ¶
- Constants
- func ABFSHash(h hash.Hash) entities.Hash
- func ABFSMode(m cas.FileMode) entities.FileMode
- func ARISize(path string) (string, int64, error)
- func BackendStat(path string) (*fs.BackendStat, error)
- func CASHash(h *entities.Hash) hash.Hash
- func CASMode(m entities.FileMode) cas.FileMode
- func Chdir(path string) error
- func CheckMountPoint(mountPoint string, force bool) error
- func Chmod(path string, mode cas.FileMode) error
- func CopyHashSize(srcName, dstName string) error
- func CreateControl(path string) error
- func CreateDir(casfs CASFS, parent *casfsDir, name string) *casfsDir
- func CreateGit(path, directory, head string) error
- func CreateGitIndex(path, directory, workTree, hash string) error
- func CreateGitIndexFromTree(ctx context.Context, path, directory, worktree string, ...) error
- func CreateGitObjects(path, directory string) error
- func CreateRootDir(casfs CASFS, path string) *casfsDir
- func Debug(path string) (bool, error)
- func DirEntry(de entities.FileEntry) cas.DirEntry
- func DirList(path string) (entities.Hash, error)
- func Dirty(path string) (bool, error)
- func Excluded(path string) (bool, error)
- func Getwd() (string, error)
- func Hash(path string) (entities.Hash, error)
- func HashSize(path string) (entities.Hash, int64, error)
- func HashStat(path string) (*entities.HashStat, error)
- func Link(oldName, newName string) error
- func Loaded(path string) (bool, error)
- func Lstat(path string) (cas.FileInfo, error)
- func Mkdir(name string, m entities.FileMode) error
- func MkdirAll(name string, m entities.FileMode) error
- func Mknod(path string, mode entities.FileMode, rDev int) error
- func MountInfoForPath(path string) (*procfs.Mount, error)
- func OpenFile(path string, flag int, mode entities.FileMode) (fs.FSFile, error)
- func Readlink(path string) (string, error)
- func Remove(path string) error
- func Resolve(s ABFSCASStore, hash entities.Hash, p string) (*cas.DirEntry, error)
- func ResolveToHash(s ABFSCASStore, hash entities.Hash, p string) (entities.Hash, error)
- func SetARISize(path, ari string, s int64) error
- func SetDebug(path string, val bool) error
- func SetDeepTree(path string, h entities.Hash) error
- func SetExcluded(path string, val bool) error
- func SetGlobalCASFS(fs CASFS)
- func SetHash(path string, h entities.Hash) error
- func SetHashSize(path string, h entities.Hash, s int64) error
- func Stat(path string) (cas.FileInfo, error)
- func Status() (*fs.Status, error)
- func Symlink(oldName, newName string) error
- func Tap(cmd *exec.Cmd) (*fs.TapCmdResult, error)
- func TapResolved(cmd *exec.Cmd) (*fs.TapCmdResolvedResult, error)
- func WriteGitIndex(indexPath string, res *gitindex.Result) error
- type ABFSCASStore
- type CASBackendStat
- type CASFS
- type CASHashStat
- type Dir
- type MemFS
- type Node
Constants ¶
View Source
const ControlDirName = ".ctrl"
View Source
const GitDirName = ".git"
Variables ¶
This section is empty.
Functions ¶
func BackendStat ¶
func BackendStat(path string) (*fs.BackendStat, error)
func CheckMountPoint ¶
CheckMountPoint checks if the mount point is valid for mounting. A mount-point should: 1) Should exist if not force is true. 2) Should be empty. 3) Not be already on a CASFS file-system (fuse or kmod). 4) Not be the current working directory.
func CopyHashSize ¶
func CreateControl ¶
func CreateGitIndex ¶
func CreateGitIndexFromTree ¶
func CreateGitObjects ¶
func CreateRootDir ¶
func ResolveToHash ¶
func SetARISize ¶
func SetExcluded ¶
func SetGlobalCASFS ¶
func SetGlobalCASFS(fs CASFS)
func TapResolved ¶
func TapResolved(cmd *exec.Cmd) (*fs.TapCmdResolvedResult, error)
Types ¶
type ABFSCASStore ¶
type CASBackendStat ¶
type CASBackendStat = fs.BackendStat
type CASFS ¶
type CASFS interface {
Getwd() (string, error)
Chdir(path string) error
Mkdir(name string, m entities.FileMode) error
MkdirAll(name string, m entities.FileMode) error
Remove(path string) error
Symlink(oldName, newName string) error
Readlink(path string) (string, error)
Link(oldName, newName string) error
Mknod(path string, mode entities.FileMode, rDev int) error
Lstat(path string) (cas.FileInfo, error)
Stat(path string) (cas.FileInfo, error)
Chmod(path string, mode cas.FileMode) error
OpenFile(path string, flag int, mode entities.FileMode) (fs.FSFile, error)
Dirty(path string) (bool, error)
DirList(path string) (entities.Hash, error)
Loaded(path string) (bool, error)
Excluded(path string) (bool, error)
SetExcluded(path string, val bool) error
Hash(path string) (entities.Hash, error)
SetHash(path string, h entities.Hash) error
HashStat(path string) (*entities.HashStat, error)
HashSize(path string) (entities.Hash, int64, error)
SetHashSize(path string, h entities.Hash, s int64) error
ARISize(path string) (string, int64, error)
SetARISize(path, ari string, s int64) error
BackendStat(path string) (*fs.BackendStat, error)
SetDeepTree(path string, h entities.Hash) error
Debug(path string) (bool, error)
SetDebug(path string, val bool) error
CreateControl(path string) error
CreateGit(path, directory, head string) error
CreateGitObjects(path, directory string) error
CreateGitIndex(path, directory, workTree, hash string) error
CreateGitIndexFromTree(ctx context.Context, path, directory, worktree string, root gitindex.TreeDirectory) error
WriteGitIndex(indexPath string, res *gitindex.Result) error
Tap(cmd *exec.Cmd) (*fs.TapCmdResult, error)
TapResolved(cmd *exec.Cmd) (*fs.TapCmdResolvedResult, error)
Status() (*fs.Status, error)
SetDefaultTap()
}
func NewExternalCASFS ¶
type CASHashStat ¶
type Dir ¶
type Dir interface {
Node
Symlink(ctx context.Context, name, target string) (Node, error)
MkdirAll(ctx context.Context, name string) (Dir, error)
DeepUpdate(ctx context.Context, deepTreeHash entities.Hash) error
CreateControl(ctx context.Context) error
CreateGit(ctx context.Context, hash entities.Hash) error
CreateGitObjects(ctx context.Context, name string) error
Mknod(ctx context.Context, name string, mode entities.FileMode) (Node, error)
}
Click to show internal directories.
Click to hide internal directories.