Documentation ¶
Index ¶
- func New(logger levels.Levels, sqlLogger mysql.Logger, ...) (lib.MetaDataDriver, error)
- type Driver
- func (c *Driver) CreateFolder(ctx context.Context, user lib.User, path string) error
- func (c *Driver) Delete(ctx context.Context, user lib.User, path string) error
- func (c *Driver) Examine(ctx context.Context, user lib.User, path string) (lib.FileInfo, error)
- func (c *Driver) GetDBMetaData(virtualPath string, forceCreateOnMiss bool, ancestorVirtualPath string) (*record, error)
- func (c *Driver) GetVirtualPath(user lib.User, path string) string
- func (c *Driver) Init(ctx context.Context, user lib.User) error
- func (c *Driver) ListFolder(ctx context.Context, user lib.User, path string) ([]lib.FileInfo, error)
- func (c *Driver) Move(ctx context.Context, user lib.User, sourcePath, targetPath string) error
- func (c *Driver) MoveDBMetaData(sourceVirtualPath, targetVirtualPath, ancestorVirtualPath string) error
- func (c *Driver) PropagateChanges(user lib.User, from, to, checksum string) error
- func (c *Driver) SetDBMetaData(virtualPath, checksum string, ancestorVirtualPath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver implements the MetaDataDriver interface.
func (*Driver) CreateFolder ¶
CreateTree creates a new tree.
func (*Driver) GetDBMetaData ¶
func (c *Driver) GetDBMetaData(virtualPath string, forceCreateOnMiss bool, ancestorVirtualPath string) (*record, error)
GetDBMetaData returns the metadata kept in the database for this virtualPath.
func (*Driver) GetVirtualPath ¶
GetVirtualPath returns the virtual path inside the database for this user and path.
func (*Driver) ListFolder ¶
func (*Driver) MoveDBMetaData ¶
func (c *Driver) MoveDBMetaData(sourceVirtualPath, targetVirtualPath, ancestorVirtualPath string) error
MoveDBMetaData moves metadata from one virtualPath to another.
func (*Driver) PropagateChanges ¶
Click to show internal directories.
Click to hide internal directories.