MCPcopy
hub / github.com/golang/net / Unlock

Method Unlock

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

setControlMessageFunction · 0.65
WriteMethod · 0.65
wantEventsMethod · 0.65
appendStreamFramesMethod · 0.65
appendStreamFramesPTOMethod · 0.65
ReadMethod · 0.65
ReadByteMethod · 0.65
WriteMethod · 0.65
WriteByteMethod · 0.65
flushFastOutputBufferMethod · 0.65
resetInternalMethod · 0.65

Implementers 1

memLSwebdav/lock.go

Calls

no outgoing calls

Tested by 15

WriteMethod · 0.52
wantEventsMethod · 0.52
readMethod · 0.52
WriteMethod · 0.52
TestMemLSConfirmFunction · 0.52
TestMemLSExpiryFunction · 0.52
TestMemLSFunction · 0.52
consistentMethod · 0.52
newPacketConnMethod · 0.52
connForAddrMethod · 0.52
unlockMethod · 0.52