(&self)
| 137 | } |
| 138 | |
| 139 | pub fn image_names(&self) -> Vec<String> { |
| 140 | let host = self.host_with_credentials_and_port(); |
| 141 | match &self.id { |
| 142 | ImageId::Digest(digest) => vec![format!("{}/{}@{}", host, &self.name, digest)], |
| 143 | ImageId::Tags(tags) => tags |
| 144 | .iter() |
| 145 | .map(|tag| format!("{}/{}:{}", host, &self.name, tag)) |
| 146 | .collect(), |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | pub fn image_name(&self) -> String { |
| 151 | self.image_names().remove(0) |
no test coverage detected