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

Method NewImageSource

openshift/openshift_transport.go:140–142  ·  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

138// NewImageSource returns a types.ImageSource for this reference.
139// The caller must call .Close() on the returned ImageSource.
140func (ref openshiftReference) NewImageSource(ctx context.Context, sys *types.SystemContext) (types.ImageSource, error) {
141 return newImageSource(sys, ref)
142}
143
144// NewImageDestination returns a types.ImageDestination for this reference.
145// 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