Documentation
¶
Index ¶
- func BasePath(name string) string
- func Branch(repo, commit, branch string) error
- func Commit(repo, commit, branch string) error
- func Commits(repo, from string, cont func(CommitInfo) error) error
- func Create(name string) (*os.File, error)
- func CreateAll(name string) (*os.File, error)
- func CreateFromReader(name string, r io.Reader) (int64, error)
- func Ensure(repo string) error
- func FileExists(name string) (bool, error)
- func FilePath(name string) string
- func FindNew(repo, commit, transid string) ([]string, error)
- func Hold(repo, commit string) (string, error)
- func Init(repo string) error
- func LazyWalk(name string, f func(string) error) error
- func Link(oldname, newname string) error
- func Log(repo, from string, cont func(io.ReadCloser) error) error
- func Mkdir(name string) error
- func MkdirAll(name string) error
- func NewFiles(repo, commit string) ([]string, error)
- func Open(name string) (*os.File, error)
- func OpenFile(name string, flag int, perm os.FileMode) (*os.File, error)
- func Pull(repo, from string, cont func(io.ReadCloser) error) error
- func RandSeq(n int) string
- func ReadDir(name string) ([]os.FileInfo, error)
- func Readlink(name string) (string, error)
- func Recv(volume string, data io.ReadCloser) error
- func Release(name string)
- func Remove(name string) error
- func Rename(oldname, newname string) error
- func Send(from string, to string, cont func(io.ReadCloser) error) error
- func SendBase(to string, cont func(io.ReadCloser) error) error
- func SetReadOnly(volume string) error
- func Snapshot(volume string, dest string, readonly bool) error
- func SubvolumeCreate(name string) error
- func SubvolumeDelete(name string) error
- func Symlink(oldname, newname string) error
- func Sync() error
- func Transid(repo, commit string) (string, error)
- func TrimFilePath(name string) string
- func UnsetReadOnly(volume string) error
- func WriteFile(name string, r io.Reader) (int64, error)
- type CommitInfo
- type Diff
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ensure ¶
Ensure is like Init but won't error if the repo is already present. It will error if the repo is not present and we fail to make it.
func FileExists ¶
func FindNew ¶
FindNew returns an array of filenames that have been created since transid. transid should come from Transid.
func Hold ¶
Hold creates a temporary snapshot of a commit that no one else knows about. It's your responsibility to release the snapshot with Release
func Log ¶
func Log(repo, from string, cont func(io.ReadCloser) error) error
Log returns all of the commits the repo which have generation >= from.
func RandSeq ¶
Generates a random sequence of letters. Useful for making filesystems that won't interfere with each other. This should be factored out to another file.
func SetReadOnly ¶
func SubvolumeCreate ¶
func SubvolumeDelete ¶
func Transid ¶
Transid returns transid of a path in a repo. This value is useful for passing to FindNew.
func TrimFilePath ¶
func UnsetReadOnly ¶
Types ¶
type CommitInfo ¶
type CommitInfo struct {
// contains filtered or unexported fields
}