1 package reference 2 3 import "github.com/distribution/reference" 4 5 // IsNameOnly returns true if reference only contains a repo name. 6 // 7 // Deprecated: use [reference.IsNameOnly]. 8 func IsNameOnly(ref reference.Named) bool { 9 return reference.IsNameOnly(ref) 10 } 11 12 // FamiliarName returns the familiar name string 13 // for the given named, familiarizing if needed. 14 // 15 // Deprecated: use [reference.FamiliarName]. 16 func FamiliarName(ref reference.Named) string { 17 return reference.FamiliarName(ref) 18 } 19 20 // FamiliarString returns the familiar string representation 21 // for the given reference, familiarizing if needed. 22 // 23 // Deprecated: use [reference.FamiliarString]. 24 func FamiliarString(ref reference.Reference) string { 25 return reference.FamiliarString(ref) 26 } 27 28 // FamiliarMatch reports whether ref matches the specified pattern. 29 // See [path.Match] for supported patterns. 30 // 31 // Deprecated: use [reference.FamiliarMatch]. 32 func FamiliarMatch(pattern string, ref reference.Reference) (bool, error) { 33 return reference.FamiliarMatch(pattern, ref) 34 } 35