pub struct Platform {
pub architecture: String,
pub os: String,
pub os_version: Option<String>,
pub os_features: Option<Vec<String>>,
pub variant: Option<String>,
pub features: Option<Vec<String>>,
}Expand description
Platform specific fields of an Image Index manifest entry.
It is part of the OCI specification, and is in the platform
section here:
Fields§
§architecture: StringThis REQUIRED property specifies the CPU architecture.
Image indexes SHOULD use, and implementations SHOULD understand, values
listed in the Go Language document for GOARCH.
os: StringThis REQUIRED property specifies the operating system.
Image indexes SHOULD use, and implementations SHOULD understand, values
listed in the Go Language document for GOOS.
os_version: Option<String>This OPTIONAL property specifies the version of the operating system
targeted by the referenced blob.
Implementations MAY refuse to use manifests where os.version is not known
to work with the host OS version.
Valid values are implementation-defined. e.g. 10.0.14393.1066 on windows.
os_features: Option<Vec<String>>This OPTIONAL property specifies an array of strings, each specifying a mandatory OS feature.
When os is windows, image indexes SHOULD use, and implementations SHOULD understand the following values:
win32k: image requireswin32k.syson the host (Note:win32k.sysis missing on Nano Server)
When os is not windows, values are implementation-defined and SHOULD be submitted to this specification for standardization.
variant: Option<String>This OPTIONAL property specifies the variant of the CPU.
Image indexes SHOULD use, and implementations SHOULD understand, variant values listed in the Platform Variants table.
features: Option<Vec<String>>This property is RESERVED for future versions of the specification.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Platform
impl<'de> Deserialize<'de> for Platform
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>,
impl Eq for Platform
impl StructuralPartialEq for Platform
Auto Trait Implementations§
impl Freeze for Platform
impl RefUnwindSafe for Platform
impl Send for Platform
impl Sync for Platform
impl Unpin for Platform
impl UnwindSafe for Platform
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.Source§impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<C> SignWithKey<String> for Cwhere
C: ToBase64,
impl<C> SignWithKey<String> for Cwhere
C: ToBase64,
fn sign_with_key(self, key: &impl SigningAlgorithm) -> Result<String, Error>
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.