Struct k8s_openapi::api::resource::v1alpha2::ResourceHandle
source · pub struct ResourceHandle {
pub data: Option<String>,
pub driver_name: Option<String>,
pub structured_data: Option<StructuredResourceHandle>,
}
Expand description
ResourceHandle holds opaque resource data for processing by a specific kubelet plugin.
Fields§
§data: Option<String>
Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle.
The maximum size of this field is 16KiB. This may get increased in the future, but not reduced.
driver_name: Option<String>
DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle’s data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.
structured_data: Option<StructuredResourceHandle>
If StructuredData is set, then it needs to be used instead of Data.
Trait Implementations§
source§impl Clone for ResourceHandle
impl Clone for ResourceHandle
source§fn clone(&self) -> ResourceHandle
fn clone(&self) -> ResourceHandle
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResourceHandle
impl Debug for ResourceHandle
source§impl DeepMerge for ResourceHandle
impl DeepMerge for ResourceHandle
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.source§impl Default for ResourceHandle
impl Default for ResourceHandle
source§fn default() -> ResourceHandle
fn default() -> ResourceHandle
source§impl<'de> Deserialize<'de> for ResourceHandle
impl<'de> Deserialize<'de> for ResourceHandle
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>,
source§impl PartialEq for ResourceHandle
impl PartialEq for ResourceHandle
source§fn eq(&self, other: &ResourceHandle) -> bool
fn eq(&self, other: &ResourceHandle) -> bool
self
and other
values to be equal, and is used
by ==
.