pub struct ImageConfig {
pub env: Vec<String>,
pub cmd: Option<Vec<String>>,
pub entrypoint: Option<Vec<String>>,
pub working_dir: Option<String>,
pub user: Option<String>,
pub exposed_ports: Vec<String>,
pub volumes: Vec<String>,
pub labels: HashMap<String, String>,
pub stop_signal: Option<String>,
}Expand description
Runtime configuration parsed from an OCI image config blob.
These are defaults — SandboxBuilder fields override them.
Fields are Option where the OCI spec allows omission.
Fields§
§env: Vec<String>Environment variables (KEY=VALUE format).
cmd: Option<Vec<String>>Default command.
entrypoint: Option<Vec<String>>Entrypoint.
working_dir: Option<String>Working directory for the default process.
user: Option<String>Default user (uid, uid:gid, username, or username:group).
exposed_ports: Vec<String>Ports the image declares as exposed (informational only).
volumes: Vec<String>Volume mount points declared by the image (informational).
labels: HashMap<String, String>Image labels (key-value metadata).
stop_signal: Option<String>Signal to send for graceful shutdown (e.g., SIGTERM).
Implementations§
Source§impl ImageConfig
impl ImageConfig
Trait Implementations§
Source§impl Clone for ImageConfig
impl Clone for ImageConfig
Source§fn clone(&self) -> ImageConfig
fn clone(&self) -> ImageConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImageConfig
impl Debug for ImageConfig
Source§impl Default for ImageConfig
impl Default for ImageConfig
Source§fn default() -> ImageConfig
fn default() -> ImageConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImageConfig
impl<'de> Deserialize<'de> for ImageConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ImageConfig
impl RefUnwindSafe for ImageConfig
impl Send for ImageConfig
impl Sync for ImageConfig
impl Unpin for ImageConfig
impl UnsafeUnpin for ImageConfig
impl UnwindSafe for ImageConfig
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