pub struct ContainerCliBackend { /* private fields */ }Implementations§
Source§impl ContainerCliBackend
impl ContainerCliBackend
pub fn new(debug: bool, runtime: ContainerRuntime) -> Self
pub fn build_list_spec(runtime: ContainerRuntime) -> CommandSpec
pub fn build_inspect_spec( runtime: ContainerRuntime, container_name: &str, ) -> CommandSpec
pub fn build_system_status_spec(runtime: ContainerRuntime) -> CommandSpec
pub fn build_system_start_spec(runtime: ContainerRuntime) -> CommandSpec
pub fn build_build_spec( runtime: ContainerRuntime, build: &ResolvedBuild, ) -> CommandSpec
pub fn build_create_spec( runtime: ContainerRuntime, environment: &ResolvedEnvironment, ) -> CommandSpec
pub fn build_start_spec( runtime: ContainerRuntime, container_name: &str, ) -> CommandSpec
pub fn build_exec_spec( runtime: ContainerRuntime, container_name: &str, request: &ExecRequest, ) -> CommandSpec
pub fn build_delete_spec( runtime: ContainerRuntime, container_name: &str, ) -> CommandSpec
pub fn build_passthrough_spec( runtime: ContainerRuntime, args: Vec<String>, ) -> CommandSpec
Trait Implementations§
Source§impl ContainerBackend for ContainerCliBackend
impl ContainerBackend for ContainerCliBackend
fn list_all(&self) -> Result<Vec<ContainerSummary>, BackendError>
fn inspect_raw( &self, container_name: &str, ) -> Result<Option<Value>, BackendError>
fn system_running(&self) -> Result<bool, BackendError>
fn start_system(&self) -> Result<(), BackendError>
fn build_image(&self, build: &ResolvedBuild) -> Result<(), BackendError>
fn create(&self, environment: &ResolvedEnvironment) -> Result<(), BackendError>
fn start(&self, container_name: &str) -> Result<(), BackendError>
fn exec( &self, container_name: &str, request: &ExecRequest, ) -> Result<(), BackendError>
fn delete(&self, container_name: &str) -> Result<(), BackendError>
fn run_command( &self, step: &str, spec: &CommandSpec, ) -> Result<(), BackendError>
Auto Trait Implementations§
impl Freeze for ContainerCliBackend
impl RefUnwindSafe for ContainerCliBackend
impl Send for ContainerCliBackend
impl Sync for ContainerCliBackend
impl Unpin for ContainerCliBackend
impl UnsafeUnpin for ContainerCliBackend
impl UnwindSafe for ContainerCliBackend
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