MCPcopy Index your code
hub / github.com/docker/docker-agent / separator

Function separator

pkg/remote/pull.go:300–305  ·  view source on GitHub ↗

separator returns the separator used between repository and identifier. For digests it returns "@", for tags it returns ":".

(ref name.Reference)

Source from the content-addressed store, hash-verified

298// separator returns the separator used between repository and identifier.
299// For digests it returns "@", for tags it returns ":".
300func separator(ref name.Reference) string {
301 if _, ok := ref.(name.Digest); ok {
302 return "@"
303 }
304 return ":"
305}

Callers 3

NormalizeReferenceFunction · 0.85
PullFunction · 0.85
TestSeparatorFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestSeparatorFunction · 0.68