-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Liboci additional flags and subcommands, as required by ociplex (#2149)
Add the missing OCI cli options and change options order - checkpoint: Add the missing command-line options as documented for runc, and also reorder the options to match the documentation: https://github.com/opencontainers/runc/blob/main/man/runc-checkpoint.8.md (This does not mean that they are necessarily implemented) - no-pivot: The --no-pivot option is documented in https://github.com/opencontainers/runc/blob/main/man/runc-create.8.md Also change the options order in order to match the doc, this makes the code a bit easier to maintain. - exec: Add the missing command-line options for the exec subcommand. Reference: https://github.com/opencontainers/runc/blob/main/man/runc-exec.8.md - run: Also change the order to match the documentation in https://github.com/opencontainers/runc/blob/main/man/runc-run.8.md - update Add command-line options as documented in https://github.com/opencontainers/runc/blob/main/man/runc-update.8.md - spec: Add the missing bundle option, as documented in https://github.com/opencontainers/runc/blob/main/man/runc-spec.8.md - features The 'features' subcommand is not publicly documented yet, but it was introduced in `runc` in opencontainers/runc#3296. - liboci-cli: Update README with information about features subcommand The `features` subcommand is implemented in `runc`, but not documented. See opencontainers/runc#3296 - list: Add missing command-line options Add the command-line options documented in ------- Signed-off-by: Christophe de Dinechin <[email protected]> Signed-off-by: yihuaf <[email protected]> Co-authored-by: yihuaf <[email protected]>
- Loading branch information
Showing
13 changed files
with
218 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
use clap::Parser; | ||
|
||
/// Return the features list for a container | ||
/// This subcommand was introduced in runc by | ||
/// https://github.com/opencontainers/runc/pull/3296 | ||
/// It is documented here: | ||
/// https://github.com/opencontainers/runtime-spec/blob/main/features-linux.md | ||
#[derive(Parser, Debug)] | ||
pub struct Features {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//! Contains Functionality of `features` container command | ||
use anyhow::Result; | ||
use liboci_cli::Features; | ||
|
||
/// lists all existing containers | ||
pub fn features(_: Features) -> Result<()> { | ||
Ok(()) | ||
} |
Oops, something went wrong.