(registry: Url, name: String, tags: Vec<String>)
| 111 | |
| 112 | impl ContainerImage { |
| 113 | pub fn new(registry: Url, name: String, tags: Vec<String>) -> Self { |
| 114 | assert!(!tags.is_empty(), "cannot create a container image without tags"); |
| 115 | |
| 116 | ContainerImage { |
| 117 | registry, |
| 118 | name, |
| 119 | id: ImageId::Tags(tags), |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | fn _new_for_digest(registry: Url, name: String, digest: String) -> Self { |
| 124 | ContainerImage { |
nothing calls this directly
no test coverage detected