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

Method NewImageSource

docker/daemon/daemon_transport.go:206–208  ·  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 *types.SystemContext)

Source from the content-addressed store, hash-verified

204// NewImageSource returns a types.ImageSource for this reference.
205// The caller must call .Close() on the returned ImageSource.
206func (ref daemonReference) NewImageSource(ctx context.Context, sys *types.SystemContext) (types.ImageSource, error) {
207 return newImageSource(ctx, sys, ref)
208}
209
210// NewImageDestination returns a types.ImageDestination for this reference.
211// The caller must call .Close() on the returned ImageDestination.

Callers

nothing calls this directly

Calls 1

newImageSourceFunction · 0.70

Tested by

no test coverage detected