MCPcopy
hub / github.com/google/go-containerregistry / IsLayer

Method IsLayer

pkg/v1/types/types.go:92–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90}
91
92func (m MediaType) IsLayer() bool {
93 switch m {
94 case DockerLayer, DockerUncompressedLayer, OCILayer, OCILayerZStd, OCIUncompressedLayer, DockerForeignLayer, OCIRestrictedLayer, OCIUncompressedRestrictedLayer:
95 return true
96 }
97 return false
98}

Callers 2

validateLayersFunction · 0.80
ExportFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected