Struct brane_tsk::docker::ExecuteInfo
source · pub struct ExecuteInfo {
pub name: String,
pub image: Image,
pub image_source: ImageSource,
pub command: Vec<String>,
pub binds: Vec<VolumeBind>,
pub capabilities: HashSet<Capability>,
pub network: Network,
}
Expand description
Collects information we need to perform a container call.
Fields§
§name: String
The name of the container-to-be.
image: Image
The image name to use for the container.
image_source: ImageSource
The location where we import (as file) or create (from repo) the image from.
command: Vec<String>
The command(s) to pass to Branelet.
binds: Vec<VolumeBind>
The extra mounts we want to add, if any (this includes any data folders).
capabilities: HashSet<Capability>
The extra device requests we want to add, if any (e.g., GPUs).
network: Network
The netwok to connect the container to.
Implementations§
source§impl ExecuteInfo
impl ExecuteInfo
sourcepub fn new(
name: impl Into<String>,
image: impl Into<Image>,
image_source: impl Into<ImageSource>,
command: Vec<String>,
binds: Vec<VolumeBind>,
capabilities: HashSet<Capability>,
network: Network,
) -> Self
pub fn new( name: impl Into<String>, image: impl Into<Image>, image_source: impl Into<ImageSource>, command: Vec<String>, binds: Vec<VolumeBind>, capabilities: HashSet<Capability>, network: Network, ) -> Self
Constructor for the ExecuteInfo.
§Arguments
name
: The name of the container-to-be.image
: The image name to use for the container.image_source
: The location where we import (as file) or create (from repo) the image from if it’s not already loaded.command
: The command(s) to pass to Branelet.binds
: The extra mounts we want to add, if any (this includes any data folders).capabilities
: The extra device requests we want to add, if any (e.g., GPUs).network
: The netwok to connect the container to.
§Returns
A new ExecuteInfo instance populated with the given values.
Trait Implementations§
source§impl Clone for ExecuteInfo
impl Clone for ExecuteInfo
source§fn clone(&self) -> ExecuteInfo
fn clone(&self) -> ExecuteInfo
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for ExecuteInfo
impl RefUnwindSafe for ExecuteInfo
impl Send for ExecuteInfo
impl Sync for ExecuteInfo
impl Unpin for ExecuteInfo
impl UnwindSafe for ExecuteInfo
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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