pub struct ContainerdConfig {Show 17 fields
pub image: String,
pub command: Option<Vec<String>>,
pub run: Option<String>,
pub env: HashMap<String, String>,
pub volumes: Vec<VolumeMountConfig>,
pub working_dir: Option<String>,
pub user: String,
pub network: String,
pub memory: Option<String>,
pub cpu: Option<String>,
pub pull: String,
pub containerd_addr: String,
pub cli: String,
pub tls: TlsConfig,
pub registry_auth: HashMap<String, RegistryAuth>,
pub inputs: Option<HashMap<String, String>>,
pub timeout_ms: Option<u64>,
}Expand description
Containerdconfig.
Fields§
§image: StringImage.
command: Option<Vec<String>>Command.
run: Option<String>Run.
env: HashMap<String, String>Env.
volumes: Vec<VolumeMountConfig>Volumes.
working_dir: Option<String>Working dir.
user: StringUser.
network: StringNetwork.
memory: Option<String>Memory.
cpu: Option<String>Cpu.
pull: StringPull.
containerd_addr: StringContainerd addr.
cli: StringCLI binary name: “nerdctl” (default) or “docker”.
tls: TlsConfigTls.
registry_auth: HashMap<String, RegistryAuth>Registry auth.
inputs: Option<HashMap<String, String>>Artifact inputs to mount as volumes before running. Map of artifact name → container mount point path.
timeout_ms: Option<u64>Timeout ms.
Trait Implementations§
Source§impl Clone for ContainerdConfig
impl Clone for ContainerdConfig
Source§fn clone(&self) -> ContainerdConfig
fn clone(&self) -> ContainerdConfig
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 ContainerdConfig
impl Debug for ContainerdConfig
Source§impl<'de> Deserialize<'de> for ContainerdConfig
impl<'de> Deserialize<'de> for ContainerdConfig
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
Auto Trait Implementations§
impl Freeze for ContainerdConfig
impl RefUnwindSafe for ContainerdConfig
impl Send for ContainerdConfig
impl Sync for ContainerdConfig
impl Unpin for ContainerdConfig
impl UnsafeUnpin for ContainerdConfig
impl UnwindSafe for ContainerdConfig
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