MCPcopy Create free account
hub / github.com/containers/image / IsNameOnly

Function IsNameOnly

docker/reference/helpers.go:6–14  ·  view source on GitHub ↗

IsNameOnly returns true if reference only contains a repo name.

(ref Named)

Source from the content-addressed store, hash-verified

4
5// IsNameOnly returns true if reference only contains a repo name.
6func IsNameOnly(ref Named) bool {
7 if _, ok := ref.(NamedTagged); ok {
8 return false
9 }
10 if _, ok := ref.(Canonical); ok {
11 return false
12 }
13 return true
14}
15
16// FamiliarName returns the familiar name string
17// for the given named, familiarizing if needed.

Callers 12

createSignaturesMethod · 0.92
newReferenceFunction · 0.92
ParseReferenceFunction · 0.92
newReferenceFunction · 0.92
NewReferenceFunction · 0.92
newPRMExactReferenceFunction · 0.92
SignImageManifestMethod · 0.92
SignImageManifestMethod · 0.92
TagNameOnlyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…