mirror of https://github.com/containers/image.git
Instead call distreference.FamiliarString() for SOME uses, generally for error messages and StringWithinTransport(). In signature/policy_reference_match.go and signature/docker.go, where we care about equality but not exactly about the kind of normalization, call XNamed.String() instead, with the same rationale as the earlier Name/FamiliarName choice. In copy.Image, when creating a singature, use .String() (i.e. the fully explicit form), for that extra bit of safety. In tests, generally use the simpler .String() and modify expected results, instead of calling FamilarString(). XNamed is now equivalent to distreference.Named, all the extra methods have went away. Signed-off-by: Miloslav Trmač <mitr@redhat.com> |
||
|---|---|---|
| .. | ||
| daemon | ||
| fixtures/registries.d | ||
| policyconfiguration | ||
| reference | ||
| docker_client.go | ||
| docker_client_test.go | ||
| docker_image.go | ||
| docker_image_dest.go | ||
| docker_image_src.go | ||
| docker_image_src_test.go | ||
| docker_transport.go | ||
| docker_transport_test.go | ||
| lookaside.go | ||
| lookaside_test.go | ||
| wwwauthenticate.go | ||
| wwwauthenticate_test.go | ||