Name returns a human readable identifier for the Image. Should be a DNS Label.
()
| 30 | |
| 31 | // Name returns a human readable identifier for the Image. Should be a DNS Label. |
| 32 | func (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. |
| 41 | func (i Image) PushOptions(out io.Writer, json bool) docker.PushImageOptions { |