sync

package
v5.0.0-...-b98a0e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCacheDiff

func NewCacheDiff() *cacheDiff

func WithCache

func WithCache() nodes.Option

func WithFolderTasks

func WithFolderTasks() nodes.Option

Types

type CacheHandler

type CacheHandler struct {
	abstract.Handler
}

CacheHandler maintains a cache of the nodes during modifying operations to make listings more reactive. It is used by basic APIs (like WebDAV) for better visual performances and to create pseudo-synchronous APIs.

func (*CacheHandler) Adapt

func (s *CacheHandler) Adapt(c nodes.Handler, options nodes.RouterOptions) nodes.Handler

func (*CacheHandler) CreateNode

func (*CacheHandler) DeleteNode

func (*CacheHandler) ListNodes

func (*CacheHandler) MultipartComplete

func (s *CacheHandler) MultipartComplete(ctx context.Context, target *tree.Node, uploadID string, uploadedParts []models.MultipartObjectPart) (models.ObjectInfo, error)

func (*CacheHandler) PutObject

func (s *CacheHandler) PutObject(ctx context.Context, node *tree.Node, reader io.Reader, requestData *models.PutRequestData) (models.ObjectInfo, error)

func (*CacheHandler) ReadNode

func (*CacheHandler) UpdateNode

type FolderTasksHandler

type FolderTasksHandler struct {
	abstract.Handler
}

FolderTasksHandler is a handler implementing synchronous operations for moving or deleting folders

func (*FolderTasksHandler) Adapt

func (*FolderTasksHandler) DeleteNode

DeleteNode synchronously and recursively delete a node

func (*FolderTasksHandler) UpdateNode

UpdateNode synchronously and recursively performs a Move operation of a node

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL