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

Method PutManifest

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

PutManifest writes manifest to the destination. If instanceDigest is not nil, it contains a digest of the specific manifest instance to write the manifest for (when the primary manifest is a manifest list); this should always be nil if the primary manifest is not a manifest list. It is expected but

(ctx context.Context, manifest []byte, instanceDigest *digest.Digest)

Source from the content-addressed store, hash-verified

346 // If the destination is in principle available, refuses this manifest type (e.g. it does not recognize the schema),
347 // but may accept a different manifest type, the returned error must be an ManifestTypeRejectedError.
348 PutManifest(ctx context.Context, manifest []byte, instanceDigest *digest.Digest) error
349 // PutSignatures writes a set of signatures to the destination.
350 // If instanceDigest is not nil, it contains a digest of the specific manifest instance to write or overwrite the signatures for
351 // (when the primary manifest is a manifest list); this should always be nil if the primary manifest is not a manifest list.

Callers 14

TestBlobCacheFunction · 0.95
TestWriteReadFunction · 0.95
TestReferenceNewImageFunction · 0.95
TestGetPutManifestFunction · 0.95
TestGetPutSignaturesFunction · 0.95
copyMultipleImagesMethod · 0.65
PutManifestMethod · 0.65
putTestManifestFunction · 0.65
PutManifestMethod · 0.65

Implementers 1

memoryImageDestinternal/image/docker_schema2_test.go

Calls

no outgoing calls

Tested by 8

TestBlobCacheFunction · 0.76
TestWriteReadFunction · 0.76
TestReferenceNewImageFunction · 0.76
TestGetPutManifestFunction · 0.76
TestGetPutSignaturesFunction · 0.76
putTestManifestFunction · 0.52