MCPcopy
hub / github.com/redspread/spread / Name

Method Name

pkg/image/image.go:32–38  ·  view source on GitHub ↗

Name returns a human readable identifier for the Image. Should be a DNS Label.

()

Source from the content-addressed store, hash-verified

30
31// Name returns a human readable identifier for the Image. Should be a DNS Label.
32func (i Image) Name() string {
33 if i.image == nil {
34 return ""
35 }
36 userName := strings.Split(remoteName(i.image), "/")
37 return userName[1]
38}
39
40// PushOptions returns the parameters needed to push an image.
41func (i Image) PushOptions(out io.Writer, json bool) docker.PushImageOptions {

Callers 15

updateMethod · 0.80
GetMethod · 0.80
getMethod · 0.80
isNamespaceScopedFunction · 0.80
fullNameFunction · 0.80
hostnameFunction · 0.80
remoteNameFunction · 0.80
TestParseNameFunction · 0.80
TestParseTagFunction · 0.80
TestParseUserNameFunction · 0.80
TestParseUserTagFunction · 0.80

Calls 1

remoteNameFunction · 0.85

Tested by 7

TestParseNameFunction · 0.64
TestParseTagFunction · 0.64
TestParseUserNameFunction · 0.64
TestParseUserTagFunction · 0.64
TestParseRegistryUserTagFunction · 0.64
TestNonInitImageFunction · 0.64