MCPcopy
hub / github.com/eyebluecn/tank / Create

Method Create

code/tool/webdav/lock.go:69–69  ·  view source on GitHub ↗

Create creates a lock with the given depth, duration, owner and root (name). The depth will either be negative (meaning infinite) or zero. If Create returns ErrLocked then the Handler will write a "423 Locked" HTTP status. If it returns any other non-nil error, the Handler will write a "500 Interna

(now time.Time, details LockDetails)

Source from the content-addressed store, hash-verified

67 // URI as defined by RFC 3986, Section 4.3. In particular, it should not
68 // contain whitespace.
69 Create(now time.Time, details LockDetails) (token string, err error)
70
71 // Refresh refreshes the lock with the given token.
72 //

Callers 15

CreateMethod · 0.65
CreateMethod · 0.65
CreateSpaceMethod · 0.65
lockMethod · 0.65
HandleLockMethod · 0.65
CreateMethod · 0.65
CreateMethod · 0.65
CreateMethod · 0.65
CreateMethod · 0.65
CreateMemberMethod · 0.65
CreateMethod · 0.65
CreateAdminMethod · 0.65

Implementers 1

MemLScode/tool/webdav/lock.go

Calls

no outgoing calls

Tested by 6

TestMemLSCanCreateFunction · 0.52
TestMemLSLookupFunction · 0.52
TestMemLSConfirmFunction · 0.52
TestMemLSExpiryFunction · 0.52
TestMemLSFunction · 0.52