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

Function isOciEncrypted

copy/encryption.go:16–18  ·  view source on GitHub ↗

isOciEncrypted returns a bool indicating if a mediatype is encrypted This function will be moved to be part of OCI spec when adopted.

(mediatype string)

Source from the content-addressed store, hash-verified

14// isOciEncrypted returns a bool indicating if a mediatype is encrypted
15// This function will be moved to be part of OCI spec when adopted.
16func isOciEncrypted(mediatype string) bool {
17 return strings.HasSuffix(mediatype, "+encrypted")
18}
19
20// isEncrypted checks if an image is encrypted
21func isEncrypted(i types.Image) bool {

Callers 5

bpcPreserveEncryptedMethod · 0.85
isEncryptedFunction · 0.85
copyLayerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…