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

Method NewImageDestination

openshift/openshift_transport.go:146–148  ·  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 *types.SystemContext)

Source from the content-addressed store, hash-verified

144// NewImageDestination returns a types.ImageDestination for this reference.
145// The caller must call .Close() on the returned ImageDestination.
146func (ref openshiftReference) NewImageDestination(ctx context.Context, sys *types.SystemContext) (types.ImageDestination, error) {
147 return newImageDestination(ctx, sys, ref)
148}
149
150// DeleteImage deletes the named image from the registry, if supported.
151func (ref openshiftReference) DeleteImage(ctx context.Context, sys *types.SystemContext) error {

Callers

nothing calls this directly

Calls 1

newImageDestinationFunction · 0.70

Tested by

no test coverage detected