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

Method Save

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

Save writes to the volume root. Like all operations in a transaction, Save will not be visible until Commit is called.

(ctx context.Context, tx Handle, src []byte)

Source from the content-addressed store, hash-verified

135 // Save writes to the volume root.
136 // Like all operations in a transaction, Save will not be visible until Commit is called.
137 Save(ctx context.Context, tx Handle, src []byte) error
138 // Post posts data to the volume
139 Post(ctx context.Context, tx Handle, data []byte, opts PostOpts) (CID, error)
140 // Get returns the data for a CID.

Callers 8

glfs.goFile · 0.65
modifyGLFSFunction · 0.65
tx.goFile · 0.65
FillMethod · 0.65
TxAPIFunction · 0.65
ModifyFunction · 0.65
SaveFunction · 0.65
SaveCommitFunction · 0.65

Implementers 6

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

Calls

no outgoing calls

Tested by

no test coverage detected