MCPcopy Create free account
hub / github.com/containers/image / Commit

Method Commit

types/types.go:361–361  ·  view source on GitHub ↗

Commit marks the process of storing the image as successful and asks for the image to be persisted. unparsedToplevel contains data about the top-level manifest of the source (which may be a single-arch image or a manifest list if PutManifest was only called for the single-arch image with instanceDig

(ctx context.Context, unparsedToplevel UnparsedImage)

Source from the content-addressed store, hash-verified

359 // - Uploaded data MAY be visible to others before Commit() is called
360 // - Uploaded data MAY be removed or MAY remain around if Close() is called without Commit() (i.e. rollback is allowed but not guaranteed)
361 Commit(ctx context.Context, unparsedToplevel UnparsedImage) error
362}
363
364// ManifestTypeRejectedError is returned by ImageDestination.PutManifest if the destination is in principle available,

Callers 15

TestBlobCacheFunction · 0.95
TestWriteReadFunction · 0.95
TestPutBlobDigestFailureFunction · 0.95
TestReferenceNewImageFunction · 0.95
TestGetPutManifestFunction · 0.95
TestGetPutBlobFunction · 0.95
TestPutBlobDigestFailureFunction · 0.95
TestGetPutSignaturesFunction · 0.95
dbTransactionFunction · 0.65
createImageFunction · 0.65
TestDuplicateIDFunction · 0.65

Implementers 1

memoryImageDestinternal/image/docker_schema2_test.go

Calls

no outgoing calls

Tested by 14

TestBlobCacheFunction · 0.76
TestWriteReadFunction · 0.76
TestPutBlobDigestFailureFunction · 0.76
TestReferenceNewImageFunction · 0.76
TestGetPutManifestFunction · 0.76
TestGetPutBlobFunction · 0.76
TestPutBlobDigestFailureFunction · 0.76
TestGetPutSignaturesFunction · 0.76
createImageFunction · 0.52
TestDuplicateIDFunction · 0.52
TestDuplicateNameIDFunction · 0.52