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

Method mirror

lib-engine/src/cmd/docker.rs:920–940  ·  view source on GitHub ↗
(
        &self,
        source_image: &ContainerImage,
        dest_image: &ContainerImage,
        stdout_output: &mut Stdout,
        stderr_output: &mut Stderr,
        should_abort: &CommandKille

Source from the content-addressed store, hash-verified

918 }
919
920 pub fn mirror<Stdout, Stderr>(
921 &self,
922 source_image: &ContainerImage,
923 dest_image: &ContainerImage,
924 stdout_output: &mut Stdout,
925 stderr_output: &mut Stderr,
926 should_abort: &CommandKiller,
927 ) -> Result<(), DockerError>
928 where
929 Stdout: FnMut(String),
930 Stderr: FnMut(String),
931 {
932 info!("Docker mirror {:?} {:?}", source_image, dest_image);
933 self.create_manifest(
934 dest_image,
935 &[source_image.image_name().as_str()],
936 stdout_output,
937 stderr_output,
938 should_abort,
939 )
940 }
941
942 fn create_manifest<Stdout, Stderr>(
943 &self,

Callers 5

mirror_imageFunction · 0.80
test_mirrorFunction · 0.80
test_delete_imageFunction · 0.80
test_list_tagsFunction · 0.80
test_github_crFunction · 0.80

Calls 3

create_manifestMethod · 0.80
image_nameMethod · 0.80
as_strMethod · 0.45

Tested by 4

test_mirrorFunction · 0.64
test_delete_imageFunction · 0.64
test_list_tagsFunction · 0.64
test_github_crFunction · 0.64