Documentation ¶
Index ¶
- type Trashbin
- func (tb *Trashbin) EmptyRecycle(ctx context.Context, ref *provider.Reference) error
- func (tb *Trashbin) ListRecycle(ctx context.Context, ref *provider.Reference, key, relativePath string) ([]*provider.RecycleItem, error)
- func (tb *Trashbin) MoveToTrash(ctx context.Context, n *node.Node, path string) error
- func (tb *Trashbin) PurgeRecycleItem(ctx context.Context, ref *provider.Reference, key, relativePath string) error
- func (tb *Trashbin) RestoreRecycleItem(ctx context.Context, ref *provider.Reference, key, relativePath string, ...) error
- func (tb *Trashbin) Setup(fs storage.FS) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Trashbin ¶
type Trashbin struct {
// contains filtered or unexported fields
}
func (*Trashbin) EmptyRecycle ¶
EmptyRecycle empties the trash
func (*Trashbin) ListRecycle ¶
func (tb *Trashbin) ListRecycle(ctx context.Context, ref *provider.Reference, key, relativePath string) ([]*provider.RecycleItem, error)
ListRecycle returns the list of available recycle items ref -> the space (= resourceid), key -> deleted node id, relativePath = relative to key
func (*Trashbin) MoveToTrash ¶
func (*Trashbin) PurgeRecycleItem ¶
func (tb *Trashbin) PurgeRecycleItem(ctx context.Context, ref *provider.Reference, key, relativePath string) error
PurgeRecycleItem purges the specified item, all its children and all their revisions
Click to show internal directories.
Click to hide internal directories.