pub struct SnapshotImageConfig {
pub entrypoint: Option<Vec<String>>,
pub cmd: Option<Vec<String>>,
pub env: Vec<(String, String)>,
pub working_dir: Option<String>,
pub user: Option<String>,
pub exposed_ports: Vec<String>,
pub labels: HashMap<String, String>,
pub volumes: Vec<String>,
pub stop_signal: Option<String>,
pub health_check: Option<SnapshotImageHealthCheck>,
pub onbuild: Vec<String>,
}Expand description
Resolved OCI image defaults required to reproduce a captured rootfs.
These values are distinct from SnapshotMetadata command, environment,
and working-directory fields: those fields are user overrides, while this
structure records the immutable defaults resolved from the source image.
Fields§
§entrypoint: Option<Vec<String>>Image entrypoint.
cmd: Option<Vec<String>>Image command arguments.
env: Vec<(String, String)>Image environment in declaration order.
working_dir: Option<String>Image working directory.
user: Option<String>Image user.
exposed_ports: Vec<String>Ports declared by the image.
labels: HashMap<String, String>Image labels.
volumes: Vec<String>Volumes declared by the image.
stop_signal: Option<String>Image stop signal.
health_check: Option<SnapshotImageHealthCheck>Image health check.
onbuild: Vec<String>Image ONBUILD triggers.
Trait Implementations§
Source§impl Clone for SnapshotImageConfig
impl Clone for SnapshotImageConfig
Source§fn clone(&self) -> SnapshotImageConfig
fn clone(&self) -> SnapshotImageConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SnapshotImageConfig
impl Debug for SnapshotImageConfig
Source§impl Default for SnapshotImageConfig
impl Default for SnapshotImageConfig
Source§fn default() -> SnapshotImageConfig
fn default() -> SnapshotImageConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SnapshotImageConfig
impl<'de> Deserialize<'de> for SnapshotImageConfig
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
impl Eq for SnapshotImageConfig
Source§impl PartialEq for SnapshotImageConfig
impl PartialEq for SnapshotImageConfig
Source§impl Serialize for SnapshotImageConfig
impl Serialize for SnapshotImageConfig
impl StructuralPartialEq for SnapshotImageConfig
Auto Trait Implementations§
impl Freeze for SnapshotImageConfig
impl RefUnwindSafe for SnapshotImageConfig
impl Send for SnapshotImageConfig
impl Sync for SnapshotImageConfig
impl Unpin for SnapshotImageConfig
impl UnsafeUnpin for SnapshotImageConfig
impl UnwindSafe for SnapshotImageConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.