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

Method close

copy/copy.go:382–388  ·  view source on GitHub ↗

close tears down state owned by copier.

()

Source from the content-addressed store, hash-verified

380
381// close tears down state owned by copier.
382func (c *copier) close() {
383 for i, s := range c.signersToClose {
384 if err := s.Close(); err != nil {
385 logrus.Warnf("Error closing per-copy signer %d: %v", i+1, err)
386 }
387 }
388}
389
390// validateImageListSelection returns an error if the passed-in value is not one that we recognize as a valid ImageListSelection value
391func validateImageListSelection(selection ImageListSelection) error {

Callers 4

ImageFunction · 0.95
TestCreateSignaturesFunction · 0.95
copyBlobFromStreamMethod · 0.45
CloseMethod · 0.45

Calls 1

CloseMethod · 0.65

Tested by 2

TestCreateSignaturesFunction · 0.76
CloseMethod · 0.36