pub struct Names { /* private fields */ }Expand description
The names of everything runnerd creates in Docker, under one prefix: runnerd, or another for tests.
Implementations§
Source§impl Names
impl Names
Sourcepub fn slot(&self, profile: &str, slot: usize) -> String
pub fn slot(&self, profile: &str, slot: usize) -> String
Slot slot (1-based) of the profile: its layers’ changes and its Docker Engine’s data.
Sourcepub fn slot_of(&self, profile: &str, volume: &str) -> Option<usize>
pub fn slot_of(&self, profile: &str, volume: &str) -> Option<usize>
The slot (1-based) of the profile whose volume volume is, if it is one of its slots’.
Sourcepub fn is_slot(&self, volume: &str) -> bool
pub fn is_slot(&self, volume: &str) -> bool
Whether volume is a slot’s volume of any profile, configured now or not: <prefix>-<profile>-slot-<N>.
A prefix that is another’s start, as a test’s runnerd-test-… is runnerd’s, matches the other’s too.
Sourcepub fn volume_prefix(&self) -> String
pub fn volume_prefix(&self) -> String
The prefix every volume of runnerd’s starts with, with its dash.
Sourcepub fn start_over(&self) -> String
pub fn start_over(&self) -> String
The container that starts a slot’s layers over after a host crash, when its volume could not be emptied.
Sourcepub fn seed(&self, profile: &str) -> String
pub fn seed(&self, profile: &str) -> String
The container that rebuilds the profile’s snapshot.
Sourcepub fn measure(&self, profile: &str) -> String
pub fn measure(&self, profile: &str) -> String
The container that measures what the profile’s slot 1 changed, before its upkeep (measure).
Sourcepub fn mirror_repair(&self) -> String
pub fn mirror_repair(&self) -> String
The container that repairs the mirror’s storage before the mirror starts.
Sourcepub fn build_cache(&self) -> String
pub fn build_cache(&self) -> String
What GET /v1/caches and runnerctl caches clean call the shared build cache: a directory of the daemon’s,
not a Docker volume.