MCPcopy Create free account
hub / github.com/blobcache/blobcache / ShareOut

Method ShareOut

src/blobcache/handle.go:25–25  ·  view source on GitHub ↗

ShareOut creates a copy of the handle according to the mask, and the sharing rules for the handles actions.

(ctx context.Context, h Handle, to NodeID, mask ActionSet)

Source from the content-addressed store, hash-verified

23 // ShareOut creates a copy of the handle according to the mask, and the
24 // sharing rules for the handles actions.
25 ShareOut(ctx context.Context, h Handle, to NodeID, mask ActionSet) (*Handle, error)
26 // ShareIn takes a Handle for an object on another Node and
27 // creates a remote/peer object on the local node to access it.
28 // it returns the handle to the local object.

Callers 5

ServeHTTPMethod · 0.65
handle.goFile · 0.65
ShareOutMethod · 0.65
ServeBCPMethod · 0.65
ShareOutMethod · 0.65

Implementers 5

Clientsrc/bchttp/client.go
Servicesrc/blobcachecmd/service.go
Servicesrc/bclocal/bclocal.go
Servicesrc/bcremote/bcremote.go
Clientsrc/bcipc/client.go

Calls

no outgoing calls

Tested by

no test coverage detected