[][src]Struct k8s_csi::v1_3_0::ControllerPublishVolumeRequest

pub struct ControllerPublishVolumeRequest {
    pub volume_id: String,
    pub node_id: String,
    pub volume_capability: Option<VolumeCapability>,
    pub readonly: bool,
    pub secrets: BTreeMap<String, String>,
    pub volume_context: BTreeMap<String, String>,
}

Fields

volume_id: String

The ID of the volume to be used on a node. This field is REQUIRED.

node_id: String

The ID of the node. This field is REQUIRED. The CO SHALL set this field to match the node ID returned by NodeGetInfo.

volume_capability: Option<VolumeCapability>

Volume capability describing how the CO intends to use this volume. SP MUST ensure the CO can use the published volume as described. Otherwise SP MUST return the appropriate gRPC error code. This is a REQUIRED field.

readonly: bool

Indicates SP MUST publish the volume in readonly mode. CO MUST set this field to false if SP does not have the PUBLISH_READONLY controller capability. This is a REQUIRED field.

secrets: BTreeMap<String, String>

Secrets required by plugin to complete controller publish volume request. This field is OPTIONAL. Refer to the Secrets Requirements section on how to use this field.

volume_context: BTreeMap<String, String>

Volume context as returned by SP in CreateVolumeResponse.Volume.volume_context. This field is OPTIONAL and MUST match the volume_context of the volume identified by volume_id.

Trait Implementations

impl Clone for ControllerPublishVolumeRequest[src]

impl Debug for ControllerPublishVolumeRequest[src]

impl Default for ControllerPublishVolumeRequest[src]

impl Message for ControllerPublishVolumeRequest[src]

impl PartialEq<ControllerPublishVolumeRequest> for ControllerPublishVolumeRequest[src]

impl StructuralPartialEq for ControllerPublishVolumeRequest[src]

Auto Trait Implementations

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> Instrument for T[src]

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

impl<T> IntoRequest<T> for 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]