Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrIsRoot = errors.New("is root") ErrNoMatch = errors.New("no match") ErrNotEmpty = errors.New("not empty") ErrIsEmpty = errors.New("is empty") ErrExists = errors.New("already exists") ErrIsCurrentVersion = errors.New("is set as current version") )
Errors
Functions ¶
func VersionPath ¶
VersionPath returns the full path of the Version
Types ¶
type Directory ¶
type Directory interface { String() string UUID() uuid.UUID Name() string Rename(string) error Parent() Directory Ancestry() []Directory IsRoot() bool Root() Directory SetRoot(Directory) error Owner() User SetOwner(User) error Delete() error AttachDirectory(Directory) error DetachDirectory(Directory) error AttachFile(File) error DetachFile(File) error FindDirectories(*regexp.Regexp, int) ([]Directory, error) FindFiles(*regexp.Regexp, int) ([]File, error) }
Directory is a directory
type File ¶
type File interface { String() string UUID() uuid.UUID Name() string Rename(string) error Directory() Directory SetDirectory(Directory) error CurrentVersion() Version SetCurrentVersion(Version) error Owner() User SetOwner(User) error Delete() error AttachVersion(Version) error DetachVersion(Version) error FindVersions(time.Time, time.Time, User, int) ([]Version, error) }
File is a file
Click to show internal directories.
Click to hide internal directories.