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

Method NewImageDestination

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

NewImageDestination returns a types.ImageDestination for this reference. The caller must call .Close() on the returned ImageDestination.

(ctx context.Context, sys *SystemContext)

Source from the content-addressed store, hash-verified

87 // NewImageDestination returns a types.ImageDestination for this reference.
88 // The caller must call .Close() on the returned ImageDestination.
89 NewImageDestination(ctx context.Context, sys *SystemContext) (ImageDestination, error)
90
91 // DeleteImage deletes the named image from the registry, if supported.
92 DeleteImage(ctx context.Context, sys *SystemContext) error

Callers 15

ImageFunction · 0.65
TestCreateSignaturesFunction · 0.65
NewImageDestinationMethod · 0.65
TestWriteReadFunction · 0.65
TestPutBlobDigestFailureFunction · 0.65
TestPutblobFromLocalFileFunction · 0.65
newImageDestinationFunction · 0.65
TestReferenceNewImageFunction · 0.65

Implementers 12

tarballReferencetarball/tarball_reference.go
BlobCachepkg/blobcache/blobcache.go
storageReferencestorage/storage_reference.go
ociReferenceoci/layout/oci_transport.go
ociArchiveReferenceoci/archive/oci_transport.go
dirReferencedirectory/directory_transport.go
ForbiddenImageReferenceinternal/testing/mocks/image_reference
sifReferencesif/transport.go
openshiftReferenceopenshift/openshift_transport.go
dockerReferencedocker/docker_transport.go
daemonReferencedocker/daemon/daemon_transport.go
archiveReferencedocker/archive/transport.go

Calls

no outgoing calls

Tested by 15

TestCreateSignaturesFunction · 0.52
TestWriteReadFunction · 0.52
TestPutBlobDigestFailureFunction · 0.52
TestPutblobFromLocalFileFunction · 0.52
TestReferenceNewImageFunction · 0.52
TestDestinationReferenceFunction · 0.52
TestGetPutManifestFunction · 0.52