MCPcopy Create free account
hub / github.com/Qovery/engine / image_names

Method image_names

lib-engine/src/cmd/docker.rs:139–148  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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)

Callers 3

image_nameMethod · 0.80
build_with_buildkitMethod · 0.80
pushMethod · 0.80

Calls 1

Tested by

no test coverage detected