MCPcopy Create free account
hub / github.com/containerd/nerdctl / FamiliarName

Method FamiliarName

pkg/referenceutil/referenceutil.go:56–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54}
55
56func (ir *ImageReference) FamiliarName() string {
57 if ir.Protocol != "" && ir.Domain == "" {
58 return ir.Path
59 }
60 if ir.nn != nil {
61 return reference.FamiliarName(ir.nn.(reference.Named))
62 }
63 return ""
64}
65
66func (ir *ImageReference) FamiliarMatch(pattern string) (bool, error) {
67 if ir.nn != nil {

Callers 5

ParseRepoTagFunction · 0.80
InspectFunction · 0.80
TestReferenceUtilFunction · 0.80
TestImagesFunction · 0.80
TestImagesFilterFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestReferenceUtilFunction · 0.64
TestImagesFunction · 0.64
TestImagesFilterFunction · 0.64