pub struct ContainerRuntime { /* private fields */ }Expand description
One daemon whose reported controllers passed admission.
Implementations§
Source§impl ContainerRuntime
impl ContainerRuntime
Sourcepub fn guarded(self, harness: PathBuf) -> Self
pub fn guarded(self, harness: PathBuf) -> Self
Binds the harness whose private protocol retains cleanup after parent termination.
Sourcepub fn probe(engine: ContainerEngine, program: PathBuf) -> Result<Self, AxError>
pub fn probe(engine: ContainerEngine, program: PathBuf) -> Result<Self, AxError>
Contacts the daemon under the bounded control-request budget.
§Errors
Refuses unavailable, unsupported, or unreadable daemon capabilities.
Sourcepub fn info_command(engine: ContainerEngine, program: &Path) -> Command
pub fn info_command(engine: ContainerEngine, program: &Path) -> Command
Builds the daemon question for the host’s bounded probe runner.
Unlike --version, info contacts the server and tests access.
Sourcepub fn admit(
engine: ContainerEngine,
program: PathBuf,
info: &[u8],
) -> Result<Self, AxError>
pub fn admit( engine: ContainerEngine, program: PathBuf, info: &[u8], ) -> Result<Self, AxError>
Admits reported Linux cgroup v2 CPU, memory and process limits. The host must obtain these bytes from a successful bounded info call.
§Errors
E_SANDBOX_DENIED for missing, unknown or unsupported evidence.
Sourcepub fn create_command(
&self,
limits: &ContainerLimits,
launch: &ContainerLaunch<'_>,
) -> Result<Command, AxError>
pub fn create_command( &self, limits: &ContainerLimits, launch: &ContainerLaunch<'_>, ) -> Result<Command, AxError>
Builds a stopped container. No shell interprets the target argv. The source path must name the already synced copy, never the source tree.
§Errors
E_SANDBOX_DENIED when mount or environment translation is ambiguous.
No process starts and no image is pulled by this method.