12345678910111213141516171819202122232425262728293031323334 |
- package reference
- import "github.com/distribution/reference"
- // IsNameOnly returns true if reference only contains a repo name.
- //
- // Deprecated: use [reference.IsNameOnly].
- func IsNameOnly(ref reference.Named) bool {
- return reference.IsNameOnly(ref)
- }
- // FamiliarName returns the familiar name string
- // for the given named, familiarizing if needed.
- //
- // Deprecated: use [reference.FamiliarName].
- func FamiliarName(ref reference.Named) string {
- return reference.FamiliarName(ref)
- }
- // FamiliarString returns the familiar string representation
- // for the given reference, familiarizing if needed.
- //
- // Deprecated: use [reference.FamiliarString].
- func FamiliarString(ref reference.Reference) string {
- return reference.FamiliarString(ref)
- }
- // FamiliarMatch reports whether ref matches the specified pattern.
- // See [path.Match] for supported patterns.
- //
- // Deprecated: use [reference.FamiliarMatch].
- func FamiliarMatch(pattern string, ref reference.Reference) (bool, error) {
- return reference.FamiliarMatch(pattern, ref)
- }
|