Documentation ¶
Index ¶
- Constants
- Variables
- func ChMTime(path string, time time.Time) error
- func CreateFileNodes(id string, nodes []*Node) error
- func Delete(id, parent string) error
- func DeleteFileNodes(id string) error
- func Mkdir(path string) error
- func Mv(name, newname string) error
- func New()
- func Rm(path string) error
- func Touch(path string) error
- type File
- func Create(name, parent string, isDir bool) (*File, error)
- func Get(id, parent string) (*File, error)
- func GetChild(id string) ([]*File, error)
- func Ls(path string, limit int, offset int) ([]*File, error)
- func Stat(path string) (*File, error)
- func Update(id, parent string, file *File) (*File, error)
- type Node
- type PGProvider
- type Provider
Constants ¶
View Source
const RootDirId = "11111111-1111-1111-1111-111111111111"
Variables ¶
View Source
var ( ErrExist = os.ErrExist ErrNotExist = os.ErrNotExist ErrPermission = os.ErrPermission ErrInvalidParent = &os.PathError{Err: errors.New("parent does not exist or not a directory")} )
Functions ¶
func CreateFileNodes ¶
func DeleteFileNodes ¶
Types ¶
type File ¶
type Node ¶
func GetFileNodes ¶
type PGProvider ¶
type PGProvider struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.