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

Function isEncrypted

copy/encryption.go:21–26  ·  view source on GitHub ↗

isEncrypted checks if an image is encrypted

(i types.Image)

Source from the content-addressed store, hash-verified

19
20// isEncrypted checks if an image is encrypted
21func isEncrypted(i types.Image) bool {
22 layers := i.LayerInfos()
23 return slices.ContainsFunc(layers, func(l types.BlobInfo) bool {
24 return isOciEncrypted(l.MediaType)
25 })
26}
27
28// bpDecryptionStepData contains data that the copy pipeline needs about the decryption step.
29type bpDecryptionStepData struct {

Callers 1

copySingleImageMethod · 0.85

Calls 2

isOciEncryptedFunction · 0.85
LayerInfosMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…