1
0
mirror of https://github.com/drone/drone-cli.git synced 2026-01-25 04:08:02 +01:00
drone-cli/vendor/github.com/docker/distribution/reference/helpers.go
2018-02-20 08:15:45 -08:00

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
}