pub struct DockerCleanup {
pub host: HostId,
pub root: PathBuf,
pub config: PathBuf,
pub companion: Option<PathBuf>,
}Fields§
§host: HostId§root: PathBuf§config: PathBuf§companion: Option<PathBuf>Embedders may supply the manager binary that implements companion mode.
Implementations§
Source§impl DockerCleanup
impl DockerCleanup
pub fn new(host: HostId, config_dir: &Path, state_dir: &Path) -> Self
pub fn supported() -> bool
Sourcepub fn launch_environment(
&self,
attempt: AttemptId,
repository: &str,
host_env: &RunnerEnv,
listen: Option<(PathBuf, RunnerAccount)>,
) -> Result<Option<OsString>>
pub fn launch_environment( &self, attempt: AttemptId, repository: &str, host_env: &RunnerEnv, listen: Option<(PathBuf, RunnerAccount)>, ) -> Result<Option<OsString>>
A remote endpoint or explicitly selected context stays under operator control. Dependency-cache environment variables are never changed.
listen, when given, is where the proxy’s socket goes and the account
it is handed to: a runner running as another account cannot reach the
default under state/.
Sourcepub fn sweep(
&self,
attempts: &[RunnerAttempt],
dry_run: bool,
) -> Result<SweepReport>
pub fn sweep( &self, attempts: &[RunnerAttempt], dry_run: bool, ) -> Result<SweepReport>
Authoritative attempt states are supplied by Store, never inferred from an absent workspace or a stale timestamp. Unknown attempts are retained.
Sourcepub fn sweep_with_lookup(
&self,
lookup: &dyn Fn(AttemptId) -> Result<Option<RunnerAttempt>>,
dry_run: bool,
) -> Result<SweepReport>
pub fn sweep_with_lookup( &self, lookup: &dyn Fn(AttemptId) -> Result<Option<RunnerAttempt>>, dry_run: bool, ) -> Result<SweepReport>
Query only journalled attempt IDs rather than loading years of host history.
Trait Implementations§
Source§impl Clone for DockerCleanup
impl Clone for DockerCleanup
Auto Trait Implementations§
impl Forget for DockerCleanup
impl Freeze for DockerCleanup
impl RefUnwindSafe for DockerCleanup
impl Send for DockerCleanup
impl Sync for DockerCleanup
impl Unpin for DockerCleanup
impl UnsafeUnpin for DockerCleanup
impl UnwindSafe for DockerCleanup
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more