MCPcopy Index your code
hub / github.com/foxcpp/maddy / Create

Method Create

framework/module/blob_store.go:36–36  ·  view source on GitHub ↗

Create creates a new blob for writing. Sync will be called on the returned Blob object after -all- data has been successfully written. Close without Sync can be assumed to happen due to an unrelated error and stored data can be discarded. blobSize indicates the exact amount of bytes that will be

(ctx context.Context, key string, blobSize int64)

Source from the content-addressed store, hash-verified

34 //
35 // Passed context will cover the entire blob write operation.
36 Create(ctx context.Context, key string, blobSize int64) (Blob, error)
37
38 // Open returns the reader for the object specified by
39 // passed key.

Callers 5

ensureDirectoryWritableFunction · 0.65
BufferInFileFunction · 0.65
CreateMethod · 0.65
CreateMethod · 0.65
writeDNSRecordFunction · 0.65

Implementers 3

Storeinternal/storage/blob/s3/s3.go
FSStoreinternal/storage/blob/fs/fs.go
ExtBlobStoreinternal/storage/imapsql/external_blob

Calls

no outgoing calls

Tested by

no test coverage detected