MCPcopy Create free account
hub / github.com/containers/image / StringWithinTransport

Method StringWithinTransport

docker/docker_transport.go:123–129  ·  view source on GitHub ↗

StringWithinTransport returns a string representation of the reference, which MUST be such that reference.Transport().ParseReference(reference.StringWithinTransport()) returns an equivalent reference. NOTE: The returned string is not promised to be equal to the original input to ParseReference; e.g.

()

Source from the content-addressed store, hash-verified

121// e.g. default attribute values omitted by the user may be filled in the return value, or vice versa.
122// WARNING: Do not use the return value in the UI to describe an image, it does not contain the Transport().Name() prefix.
123func (ref dockerReference) StringWithinTransport() string {
124 famString := "//" + reference.FamiliarString(ref.ref)
125 if ref.isUnknownDigest {
126 return famString + UnknownDigestSuffix
127 }
128 return famString
129}
130
131// DockerReference returns a Docker reference associated with this reference
132// (fully explicit, i.e. !reference.IsNameOnly, but reflecting user intent,

Callers

nothing calls this directly

Calls 1

FamiliarStringFunction · 0.92

Tested by

no test coverage detected