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

Method IsDangling

libimage/image.go:150–152  ·  view source on GitHub ↗

IsDangling returns true if the image is dangling, that is an untagged image without children.

(ctx context.Context)

Source from the content-addressed store, hash-verified

148// IsDangling returns true if the image is dangling, that is an untagged image
149// without children.
150func (i *Image) IsDangling(ctx context.Context) (bool, error) {
151 return i.isDangling(ctx, nil)
152}
153
154// isDangling returns true if the image is dangling, that is an untagged image
155// without children. If tree is nil, it will created for this invocation only.

Callers 2

removeRecursiveMethod · 0.80
TestImageFunctionsFunction · 0.80

Calls 1

isDanglingMethod · 0.95

Tested by 1

TestImageFunctionsFunction · 0.64