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

Function CompressedToLayer

pkg/v1/partial/compressed.go:97–99  ·  view source on GitHub ↗

CompressedToLayer fills in the missing methods from a CompressedLayer so that it implements v1.Layer

(ul CompressedLayer)

Source from the content-addressed store, hash-verified

95
96// CompressedToLayer fills in the missing methods from a CompressedLayer so that it implements v1.Layer
97func CompressedToLayer(ul CompressedLayer) (v1.Layer, error) {
98 return &compressedLayerExtender{ul}, nil
99}
100
101// CompressedImageCore represents the base minimum interface a natively
102// compressed image must implement for us to produce a v1.Image.

Callers 6

LayerMethod · 0.92
ConfigLayerMethod · 0.92
LayerMethod · 0.92
LayerByDigestMethod · 0.92
LayerByDigestMethod · 0.85

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…