pub struct Inputs {
pub command: Command,
pub container_id: String,
pub ifname: String,
pub netns: Option<PathBuf>,
pub path: Vec<PathBuf>,
pub config: NetworkConfig,
}Expand description
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 Freeze for Inputs
impl RefUnwindSafe for Inputs
impl Send for Inputs
impl Sync for Inputs
impl Unpin for Inputs
impl UnwindSafe for Inputs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more