pub struct ImageConfig {
pub user: Option<String>,
pub exposed_ports: Option<Vec<ExposedPort>>,
pub env: Option<BTreeMap<String, String>>,
pub entrypoint: Option<Vec<String>>,
pub cmd: Option<Vec<String>>,
pub volumes: Option<Vec<PathBuf>>,
pub working_dir: Option<PathBuf>,
pub labels: Option<BTreeMap<String, String>>,
pub stop_signal: Option<Signal>,
}
Fields§
§user: Option<String>
The username or UID which is a platform-specific structure that allows specific control over which user the process run as.
exposed_ports: Option<Vec<ExposedPort>>
A set of ports to expose from a container running this image.
env: Option<BTreeMap<String, String>>
Environment variables for the process to run with.
entrypoint: Option<Vec<String>>
A list of arguments to use as the command to execute when the container starts.
cmd: Option<Vec<String>>
Default arguments to the entrypoint of the container.
volumes: Option<Vec<PathBuf>>
A set of directories describing where the process is likely write data specific to a container instance.
working_dir: Option<PathBuf>
Sets the current working directory of the entrypoint process in the container.
labels: Option<BTreeMap<String, String>>
The field contains arbitrary metadata for the container.
stop_signal: Option<Signal>
The field contains the system call signal that will be sent to the container to exit.
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<'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
Source§impl PartialEq for ImageConfig
impl PartialEq for ImageConfig
Source§impl Serialize for ImageConfig
impl Serialize for ImageConfig
impl StructuralPartialEq for ImageConfig
Auto Trait Implementations§
impl Freeze for ImageConfig
impl RefUnwindSafe for ImageConfig
impl Send for ImageConfig
impl Sync for ImageConfig
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request