MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / Confirm

Method Confirm

pkg/webdav/lock.go:54–54  ·  view source on GitHub ↗

Confirm confirms that the caller can claim all of the locks specified by the given conditions, and that holding the union of all of those locks gives exclusive access to all of the named resources. Up to two resources can be named. Empty names are ignored. Exactly one of release and err will be non

(now time.Time, name0, name1 string, conditions ...Condition)

Source from the content-addressed store, hash-verified

52 // present more than one set of locks). If it returns any other non-nil
53 // error, the Handler will write a "500 Internal Server Error" HTTP status.
54 Confirm(now time.Time, name0, name1 string, conditions ...Condition) (release func(), err error)
55
56 // Create creates a lock with the given depth, duration, owner and root
57 // (name). The depth will either be negative (meaning infinite) or zero.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected