pub struct CsiPlugin {Show 15 fields
pub id: String,
pub provider: String,
pub version: String,
pub controller_required: bool,
pub controllers: HashMap<String, CsiInfo>,
pub nodes: HashMap<String, CsiInfo>,
pub allocations: Vec<AllocationListStub>,
pub controllers_healthy: i64,
pub controllers_expected: i64,
pub nodes_healthy: i64,
pub nodes_expected: i64,
pub create_index: u64,
pub modify_index: u64,
pub create_time: i64,
pub modify_time: i64,
}
Expand description
CSIPlugin is used for serialization, see also nomad/structs/csi.go
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§id: String
§provider: String
§version: String
§controller_required: bool
§controllers: HashMap<String, CsiInfo>
Map Node.ID to CSIInfo fingerprint results
nodes: HashMap<String, CsiInfo>
§allocations: Vec<AllocationListStub>
§controllers_healthy: i64
§controllers_expected: i64
§nodes_healthy: i64
§nodes_expected: i64
§create_index: u64
§modify_index: u64
§create_time: i64
CreateTime stored as UnixNano
modify_time: i64
ModifyTime stored as UnixNano
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CsiPlugin
impl<'de> Deserialize<'de> for CsiPlugin
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for CsiPlugin
Auto Trait Implementations§
impl Freeze for CsiPlugin
impl RefUnwindSafe for CsiPlugin
impl Send for CsiPlugin
impl Sync for CsiPlugin
impl Unpin for CsiPlugin
impl UnwindSafe for CsiPlugin
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
Mutably borrows from an owned value. Read more