Skip to content

Commit

Permalink
try to comment lines
Browse files Browse the repository at this point in the history
  • Loading branch information
DarrellTang committed Oct 28, 2023
1 parent 0e65303 commit f9bd988
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions crates/liboci-cli/src/features.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/// 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
// 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
use clap::Parser;
use std::collections::HashMap;

Expand All @@ -13,26 +13,26 @@ pub const ANNOTATION_LIBSECCOMP_VERSION: &str = "io.github.seccomp.libseccomp.ve

#[derive(Parser, Debug)]
pub struct Features {
/// Minimum OCI Runtime Spec version recognized by the runtime, e.g., "1.0.0".
// Minimum OCI Runtime Spec version recognized by the runtime, e.g., "1.0.0".
oci_version_min: Option<String>,
/// Maximum OCI Runtime Spec version recognized by the runtime, e.g., "1.0.2-dev".
// Maximum OCI Runtime Spec version recognized by the runtime, e.g., "1.0.2-dev".
oci_version_max: Option<String>,
/// List of the recognized hook names, e.g., "createRuntime".
// List of the recognized hook names, e.g., "createRuntime".
hooks: Option<Vec<String>>,
/// List of the recognized mount options, e.g., "ro".
// List of the recognized mount options, e.g., "ro".
mount_options: Option<Vec<String>>,
/// Specific to Linux.
// Specific to Linux.
linux: Option<Linux>,
/// Contains implementation-specific annotation strings.
// Contains implementation-specific annotation strings.
annotations: Option<std::collections::HashMap<String, String>>,
}

/// Specific to Linux.
// Specific to Linux.
#[derive(Debug)]
pub struct Linux {
/// List of the recognized namespaces, e.g., "mount".
// List of the recognized namespaces, e.g., "mount".
namespaces: Option<Vec<String>>,
/// List of the recognized capabilities, e.g., "CAP_SYS_ADMIN".
// List of the recognized capabilities, e.g., "CAP_SYS_ADMIN".
capabilities: Option<Vec<String>>,
cgroup: Option<Cgroup>,
seccomp: Option<Seccomp>,
Expand Down

0 comments on commit f9bd988

Please sign in to comment.