Struct cni_plugin::Inputs [−][src]
An alternate representation of plugin inputs.
This can be obtained from Cni with the Cni::into_inputs() method.
Fields
command: CommandThe command given to the plugin.
container_id: StringThe container ID, as provided by the runtime.
The spec says:
A unique plaintext identifier for a container, allocated by the runtime. Not empty.
In practice, this may not be the ID of an actual container, but rather the ID of the logical container grouping this network applies to. E.g. a Pod, Alloc, etc.
ifname: StringThe name of the interface to create, delete, check, or manage inside the container.
netns: Option<PathBuf>The container’s “isolation domain.”
If using network namespaces, then a path to the network namespace.
Optional for DEL.
path: Vec<PathBuf>List of paths to search for CNI plugin executables.
This is in the same format as the host system’s PATH variable: e.g.
separated by : on unix, and by ; on Windows.
config: NetworkConfigThe input network configuration.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Inputs
impl Send for Inputs
impl Sync for Inputs
impl Unpin for Inputs
impl UnwindSafe for Inputs
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,