Struct cni_plugin::Inputs[][src]

pub struct Inputs {
    pub command: Command,
    pub container_id: String,
    pub ifname: String,
    pub netns: Option<PathBuf>,
    pub path: Vec<PathBuf>,
    pub config: NetworkConfig,
}

An alternate representation of plugin inputs.

This can be obtained from Cni with the Cni::into_inputs() method.

Fields

command: Command

The command given to the plugin.

container_id: String

The 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: String

The 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: NetworkConfig

The input network configuration.

Trait Implementations

impl Clone for Inputs[src]

impl Debug for Inputs[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.