1
0
mirror of https://github.com/drone/drone-cli.git synced 2026-01-26 21:08:01 +01:00
drone-cli/vendor/github.com/docker/distribution/reference/helpers.go
2017-05-15 13:59:26 +02: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
}