mirror of
https://github.com/distribution/distribution
synced 2024-11-06 19:35:52 +01:00
2caeb6192a
Signed-off-by: Nishant Totla <nishanttotla@gmail.com>
13 lines
243 B
Go
13 lines
243 B
Go
package reference
|
|
|
|
// IsNameOnly returns true if reference only contains a repo name.
|
|
func IsNameOnly(ref Named) bool {
|
|
if _, ok := ref.(NamedTagged); ok {
|
|
return false
|
|
}
|
|
if _, ok := ref.(Canonical); ok {
|
|
return false
|
|
}
|
|
return true
|
|
}
|