Struct oci_spec::runtime::Windows[][src]

pub struct Windows {
    pub layer_folders: Vec<String>,
    pub devices: Option<Vec<WindowsDevice>>,
    pub resources: Option<WindowsResources>,
    pub credential_spec: Option<HashMap<String, Option<Value>>>,
    pub servicing: Option<bool>,
    pub ignore_flushes_during_boot: Option<bool>,
    pub hyperv: Option<WindowsHyperV>,
    pub network: Option<WindowsNetwork>,
}
Expand description

Windows defines the runtime configuration for Windows based containers, including Hyper-V containers.

Fields

layer_folders: Vec<String>

LayerFolders contains a list of absolute paths to directories containing image layers.

devices: Option<Vec<WindowsDevice>>

Devices are the list of devices to be mapped into the container.

resources: Option<WindowsResources>

Resources contains information for handling resource constraints for the container.

credential_spec: Option<HashMap<String, Option<Value>>>

CredentialSpec contains a JSON object describing a group Managed Service Account (gMSA) specification.

servicing: Option<bool>

Servicing indicates if the container is being started in a mode to apply a Windows Update servicing operation.

ignore_flushes_during_boot: Option<bool>

IgnoreFlushesDuringBoot indicates if the container is being started in a mode where disk writes are not flushed during its boot process.

hyperv: Option<WindowsHyperV>

HyperV contains information for running a container with Hyper-V isolation.

network: Option<WindowsNetwork>

Network restriction configuration.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.