pub struct Checkpoint {
pub image_path: PathBuf,
pub work_path: Option<PathBuf>,
pub leave_running: bool,
pub tcp_established: bool,
pub ext_unix_sk: bool,
pub shell_job: bool,
pub file_locks: bool,
pub container_id: String,
}Expand description
Checkpoint a running container Reference: https://github.com/opencontainers/runc/blob/main/man/runc-checkpoint.8.md Unimplemented options vs runc: https://github.com/youki-dev/youki/issues/3394
Fields§
§image_path: PathBufPath for saving criu image files
work_path: Option<PathBuf>Path for saving work files and logs
leave_running: boolTODO: Path for previous criu image file in pre-dump
#[clap(long)]
pub parent_path: Option
tcp_established: boolAllow open tcp connections
ext_unix_sk: boolTODO: Skip in-flight tcp connections #[clap(long)] pub tcp_skip_in_flight: bool, TODO: Allow one to link unlinked files back when possible #[clap(long)] pub link_remap: bool, Allow external unix sockets
shell_job: boolAllow shell jobs
file_locks: boolTODO: Use lazy migration mechanism
#[clap(long)]
pub lazy_pages: bool,
TODO: Pass a file descriptor fd to criu. Is u32 the right type?
#[clap(long)]
pub status_fd: Option
container_id: StringTODO: Do a pre-dump
#[clap(long)]
pub pre_dump: bool,
TODO: Cgroups mode
#[clap(long)]
pub manage_cgroups_mode: Option
Trait Implementations§
Source§impl Args for Checkpoint
impl Args for Checkpoint
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Checkpoint
impl CommandFactory for Checkpoint
Source§impl Debug for Checkpoint
impl Debug for Checkpoint
Source§impl FromArgMatches for Checkpoint
impl FromArgMatches for Checkpoint
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.