MCPcopy
hub / github.com/lxc/incus / SetRequestor

Method SetRequestor

internal/server/operations/operations.go:216–218  ·  view source on GitHub ↗

SetRequestor sets a requestor for this operation from an http.Request.

(r *http.Request)

Source from the content-addressed store, hash-verified

214
215// SetRequestor sets a requestor for this operation from an http.Request.
216func (op *Operation) SetRequestor(r *http.Request) {
217 op.requestor = request.CreateRequestor(r)
218}
219
220// IsSameRequestor compares the current request requestor to that stored (if any).
221func (op *Operation) IsSameRequestor(r *http.Request) bool {

Callers 7

OperationCreateFunction · 0.95
doVolumeCreateOrCopyFunction · 0.95
storagePoolVolumePutFunction · 0.95
storagePoolVolumePatchFunction · 0.95
storagePoolVolumeDeleteFunction · 0.95

Implementers 1

operationclient/operations.go

Calls 1

CreateRequestorFunction · 0.92

Tested by

no test coverage detected