MCPcopy
hub / github.com/AlistGo/alist / Unlock

Method Unlock

server/webdav/lock.go:93–93  ·  view source on GitHub ↗

Unlock unlocks the lock with the given token. If Unlock returns ErrForbidden then the Handler will write a "403 Forbidden" HTTP Status. If Unlock returns ErrLocked then the Handler will write a "423 Locked" HTTP status. If Unlock returns ErrNoSuchLock then the Handler will write a "409 Conflict" HT

(now time.Time, token string)

Source from the content-addressed store, hash-verified

91 // See http://www.webdav.org/specs/rfc4918.html#rfc.section.9.11.1 for
92 // when to use each error.
93 Unlock(now time.Time, token string) error
94}
95
96// LockDetails are a lock's metadata.

Callers 15

ReadMethod · 0.65
CloseMethod · 0.65
ReadMethod · 0.65
ReadAtMethod · 0.65
ReadMethod · 0.65
CloseMethod · 0.65
getLimiterForUserFunction · 0.65
freeMethod · 0.65
UploadByMultipartMethod · 0.65
ListMethod · 0.65
getTokenMethod · 0.65
MakeDirMethod · 0.65

Implementers 1

memLSserver/webdav/lock.go

Calls

no outgoing calls

Tested by 6

HttpRequestMethod · 0.52
TestMemLSConfirmFunction · 0.52
TestMemLSExpiryFunction · 0.52
TestMemLSFunction · 0.52
consistentMethod · 0.52