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

Method TopLayer

libimage/image.go:210–212  ·  view source on GitHub ↗

TopLayer returns the top layer id as a string

()

Source from the content-addressed store, hash-verified

208
209// TopLayer returns the top layer id as a string
210func (i *Image) TopLayer() string {
211 return i.storageImage.TopLayer
212}
213
214// Parent returns the parent image or nil if there is none
215func (i *Image) Parent(ctx context.Context) (*Image, error) {

Callers 8

MountpointMethod · 0.95
driverDataMethod · 0.95
HistoryMethod · 0.95
TreeMethod · 0.95
layerTreeMethod · 0.80
childrenMethod · 0.80
parentMethod · 0.80
TestImageFunctionsFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestImageFunctionsFunction · 0.64