pub struct ImageConfigurationBuilder { /* private fields */ }
Expand description
Builder for ImageConfiguration
.
Implementations§
Source§impl ImageConfigurationBuilder
impl ImageConfigurationBuilder
Sourcepub fn created<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn created<VALUE: Into<String>>(self, value: VALUE) -> Self
An combined date and time at which the image was created, formatted as defined by RFC 3339, section 5.6.
Gives the name and/or email address of the person or entity which created and is responsible for maintaining the image.
Sourcepub fn architecture<VALUE: Into<Arch>>(self, value: VALUE) -> Self
pub fn architecture<VALUE: Into<Arch>>(self, value: VALUE) -> Self
The CPU architecture which the binaries in this image are built to run on. Configurations SHOULD use, and implementations SHOULD understand, values listed in the Go Language document for GOARCH.
Sourcepub fn os<VALUE: Into<Os>>(self, value: VALUE) -> Self
pub fn os<VALUE: Into<Os>>(self, value: VALUE) -> Self
The name of the operating system which the image is built to run on. Configurations SHOULD use, and implementations SHOULD understand, values listed in the Go Language document for GOOS.
Sourcepub fn os_version<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn os_version<VALUE: Into<String>>(self, value: VALUE) -> Self
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.
Sourcepub fn os_features<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
pub fn os_features<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
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 requires win32k.sys on the host (Note: win32k.sys is missing on Nano Server)
Sourcepub fn variant<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn variant<VALUE: Into<String>>(self, value: VALUE) -> Self
The variant of the specified CPU architecture. Configurations SHOULD use, and implementations SHOULD understand, variant values listed in the Platform Variants table.
Sourcepub fn config<VALUE: Into<Config>>(self, value: VALUE) -> Self
pub fn config<VALUE: Into<Config>>(self, value: VALUE) -> Self
The execution parameters which SHOULD be used as a base when running a container using the image. This field can be None, in which case any execution parameters should be specified at creation of the container.
Sourcepub fn rootfs<VALUE: Into<RootFs>>(self, value: VALUE) -> Self
pub fn rootfs<VALUE: Into<RootFs>>(self, value: VALUE) -> Self
The rootfs key references the layer content addresses used by the image. This makes the image config hash depend on the filesystem hash.
Sourcepub fn history<VALUE: Into<Vec<History>>>(self, value: VALUE) -> Self
pub fn history<VALUE: Into<Vec<History>>>(self, value: VALUE) -> Self
Describes the history of each layer. The array is ordered from first to last.