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

Method NewImageSource

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

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

(ctx context.Context, sys *SystemContext)

Source from the content-addressed store, hash-verified

84 // NewImageSource returns a types.ImageSource for this reference.
85 // The caller must call .Close() on the returned ImageSource.
86 NewImageSource(ctx context.Context, sys *SystemContext) (ImageSource, error)
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)

Callers 15

ImageFunction · 0.65
TestBlobCacheFunction · 0.65
NewImageSourceMethod · 0.65
TestWriteReadFunction · 0.65
TestDuplicateBlobFunction · 0.65
createImageSourceFunction · 0.65
TestGetLocalBlobPathFunction · 0.65
newImageSourceFunction · 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

TestBlobCacheFunction · 0.52
TestWriteReadFunction · 0.52
TestDuplicateBlobFunction · 0.52
createImageSourceFunction · 0.52
TestGetLocalBlobPathFunction · 0.52
TestGetPutManifestFunction · 0.52
TestGetPutBlobFunction · 0.52
TestGetPutSignaturesFunction · 0.52
TestSourceReferenceFunction · 0.52