MCPcopy
hub / github.com/containerd/containerd / String

Method String

pkg/reference/reference.go:147–156  ·  view source on GitHub ↗

String returns the normalized string for the ref.

()

Source from the content-addressed store, hash-verified

145
146// String returns the normalized string for the ref.
147func (r Spec) String() string {
148 if r.Object == "" {
149 return r.Locator
150 }
151 if r.Object[:1] == "@" {
152 return r.Locator + r.Object
153 }
154
155 return r.Locator + ":" + r.Object
156}

Callers 4

ApplyLayersWithOptsFunction · 0.45
ApplyLayerWithOptsFunction · 0.45
applyLayersFunction · 0.45
TestReferenceParserFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestReferenceParserFunction · 0.36