1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! Helper image constants for volume-copy containers.
/// Name prefix shared by every *container* migration creates for its own use.
///
/// Planning excludes anything carrying it, so scaffolding is never mistaken for
/// user data. The random token is what makes that exclusion safe:
/// `arcbox-migration-` alone is a namespace ArcBox's own services may
/// legitimately name containers in, and excluding the bare prefix would drop
/// those from the plan silently. The helper *image* deliberately does not carry
/// the prefix — there is exactly one and it is matched by exact reference.
///
/// The token is fixed rather than per-run so that a retry reconstructs the same
/// helper name and can clear a stray left by an interrupted run; see
/// `DockerCliRunner::remove_stale_helper`.
pub const HELPER_OBJECT_PREFIX: &str = "arcbox-migration-cea3989d-";
/// Returns the helper image reference used for temporary migration containers.
pub const
/// Returns whether a name belongs to migration's own scaffolding.