MCPcopy
hub / github.com/containerd/containerd / Commit

Method Commit

core/content/content.go:159–159  ·  view source on GitHub ↗

Commit commits the blob (but no roll-back is guaranteed on an error). size and expected can be zero-value when unknown. Commit always closes the writer, even on error. ErrAlreadyExists aborts the writer.

(ctx context.Context, size int64, expected digest.Digest, opts ...Opt)

Source from the content-addressed store, hash-verified

157 // Commit always closes the writer, even on error.
158 // ErrAlreadyExists aborts the writer.
159 Commit(ctx context.Context, size int64, expected digest.Digest, opts ...Opt) error
160
161 // Status returns the current state of write
162 Status() (Status, error)

Callers 15

resolveSnapshotOptionsFunction · 0.65
writeContentFunction · 0.65
withRemappedSnapshotBaseFunction · 0.65
FuzzContentStoreFunction · 0.65
TestCommitParentOptionFunction · 0.65
CommitMethod · 0.65
CommitMethod · 0.65
unpackMethod · 0.65
FinishMethod · 0.65
FetchFunction · 0.65
TestPusherErrResetFunction · 0.65

Implementers 5

pushWritercore/remotes/docker/pusher.go
namespacedWritercore/metadata/content.go
fakeWritercore/content/helpers_test.go
remoteWritercore/content/proxy/content_writer.go
writerplugins/content/local/writer.go

Calls

no outgoing calls

Tested by 15

FuzzContentStoreFunction · 0.52
TestCommitParentOptionFunction · 0.52
CommitMethod · 0.52
TestPusherErrResetFunction · 0.52
createFunction · 0.52
TestSnapshotterWithRefFunction · 0.52
TestBtrfsMountsFunction · 0.52
testUsageFunction · 0.52
TestMultipleXfsMountsFunction · 0.52