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

Method ShareIn

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

ShareIn takes a Handle for an object on another Node and creates a remote/peer object on the local node to access it. it returns the handle to the local object.

(ctx context.Context, host NodeID, h Handle)

Source from the content-addressed store, hash-verified

27 // creates a remote/peer object on the local node to access it.
28 // it returns the handle to the local object.
29 ShareIn(ctx context.Context, host NodeID, h Handle) (Handle, error)
30 // Inspect inspects whatever the object is and returns an Info object.
31 Inspect(ctx context.Context, h Handle) (Info, error)
32}

Callers 5

ServeHTTPMethod · 0.65
ShareInMethod · 0.65
ShareInMethod · 0.65
ServeBCPMethod · 0.65
ShareInMethod · 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