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.
()
| 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. |
| 123 | func (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, |
nothing calls this directly
no test coverage detected