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: StringThe ID of the volume to be used on a node. This field is REQUIRED.
node_id: StringThe 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: boolIndicates 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§
Source§impl Clone for ControllerPublishVolumeRequest
impl Clone for ControllerPublishVolumeRequest
Source§fn clone(&self) -> ControllerPublishVolumeRequest
fn clone(&self) -> ControllerPublishVolumeRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Message for ControllerPublishVolumeRequest
impl Message for ControllerPublishVolumeRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.Source§impl PartialEq for ControllerPublishVolumeRequest
impl PartialEq for ControllerPublishVolumeRequest
Source§fn eq(&self, other: &ControllerPublishVolumeRequest) -> bool
fn eq(&self, other: &ControllerPublishVolumeRequest) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ControllerPublishVolumeRequest
Auto Trait Implementations§
impl Freeze for ControllerPublishVolumeRequest
impl RefUnwindSafe for ControllerPublishVolumeRequest
impl Send for ControllerPublishVolumeRequest
impl Sync for ControllerPublishVolumeRequest
impl Unpin for ControllerPublishVolumeRequest
impl UnwindSafe for ControllerPublishVolumeRequest
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> 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>
T in a tonic::Request