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

Method Close

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

Close removes resources associated with an initialized ImageSource, if any.

()

Source from the content-addressed store, hash-verified

249 Reference() ImageReference
250 // Close removes resources associated with an initialized ImageSource, if any.
251 Close() error
252 // GetManifest returns the image's manifest along with its MIME type (which may be empty when it can't be determined but the manifest is available).
253 // It may use a remote (= slow) service.
254 // If instanceDigest is not nil, it contains a digest of the specific manifest instance to retrieve (when the primary manifest is a manifest list);

Callers 15

TestBlobCacheFunction · 0.95
TestWriteReadFunction · 0.95
TestDuplicateBlobFunction · 0.95
TestGetLocalBlobPathFunction · 0.95
TestGetPutManifestFunction · 0.95
TestGetPutBlobFunction · 0.95
TestGetPutSignaturesFunction · 0.95
TestSourceReferenceFunction · 0.95

Implementers 1

ForbiddenImageSourceinternal/testing/mocks/image_source.go

Calls

no outgoing calls

Tested by 15

TestBlobCacheFunction · 0.76
TestWriteReadFunction · 0.76
TestDuplicateBlobFunction · 0.76
TestGetLocalBlobPathFunction · 0.76
TestGetPutManifestFunction · 0.76
TestGetPutBlobFunction · 0.76
TestGetPutSignaturesFunction · 0.76
TestSourceReferenceFunction · 0.76