MCPcopy Create free account
hub / github.com/devld/go-drive / 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

ProgressMethod · 0.65
TotalMethod · 0.65
UnlockMethod · 0.65
GetMethod · 0.65
ReturnMethod · 0.65
DisposeMethod · 0.65
cleanExpiredMethod · 0.65
ForkMethod · 0.65
DisposeMethod · 0.65
ProcessMethod · 0.65

Implementers 1

memLSserver/webdav/lock.go

Calls

no outgoing calls

Tested by 6

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