Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = fmt.Errorf("not found")
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) CreateRevision ¶
CreateRevision creates a new revision of the file at the given path. The file contains meta information about the revisions. The revisions are stores in the /.revisions directory. Ex:
"/tmp/test.txt" -> "/tmp/test.txt
func (*Store) ListEntries ¶
ListEntries returns a list of entries in the given path. If the entry is a file, the list item will contain the file name and the latest revision ID. If the entry is a directory, the list item will contain the directory name followed by a space and the string "DIR". Ex:
"/tmp" -> ["dirA/ DIR", "test.txt r2"]
Click to show internal directories.
Click to hide internal directories.