mirror of
https://github.com/containers/skopeo.git
synced 2025-09-22 10:27:08 +00:00
35 lines
1.0 KiB
Go
35 lines
1.0 KiB
Go
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)
|
|
}
|