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

Method OpenFiat

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

OpenFiat returns a handle to an object by it's ID. This is where any Authorization checks are done. It's called "fiat" because it's up to the Node to say yes or no. The result is implementation dependent, unlike OpenFrom, which should behave the same way on any Node.

(ctx context.Context, x OID, mask ActionSet)

Source from the content-addressed store, hash-verified

394 // The result is implementation dependent, unlike OpenFrom, which should behave
395 // the same way on any Node.
396 OpenFiat(ctx context.Context, x OID, mask ActionSet) (*Handle, error)
397
398 // CreateVolume creates a new volume.
399 // CreateVolume always creates a Volume on the local Node.

Callers 11

ServeHTTPMethod · 0.65
daemon.goFile · 0.65
TestOwnFunction · 0.65
volume.goFile · 0.65
ensureHandleFunction · 0.65
SetupSceneFunction · 0.65
ServeBCPMethod · 0.65
OpenFiatMethod · 0.65
openRootMethod · 0.65
OpenURLFunction · 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 2

TestOwnFunction · 0.52