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

Method StringWithinTransport

openshift/openshift_transport.go:94–96  ·  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

92// e.g. default attribute values omitted by the user may be filled in the return value, or vice versa.
93// WARNING: Do not use the return value in the UI to describe an image, it does not contain the Transport().Name() prefix.
94func (ref openshiftReference) StringWithinTransport() string {
95 return reference.FamiliarString(ref.dockerReference)
96}
97
98// DockerReference returns a Docker reference associated with this reference
99// (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