MCPcopy Create free account
hub / github.com/containers/common / node

Method node

libimage/layer_tree.go:24–31  ·  view source on GitHub ↗

node returns a layerNode for the specified layerID.

(layerID string)

Source from the content-addressed store, hash-verified

22
23// node returns a layerNode for the specified layerID.
24func (t *layerTree) node(layerID string) *layerNode {
25 node, exists := t.nodes[layerID]
26 if !exists {
27 node = &layerNode{}
28 t.nodes[layerID] = node
29 }
30 return node
31}
32
33// toOCI returns an OCI image for the specified image.
34func (t *layerTree) toOCI(ctx context.Context, i *Image) (*ociv1.Image, error) {

Callers 3

layerTreeMethod · 0.95
HistoryMethod · 0.80
TreeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected