pub struct NodeSystemInfo {
pub machine_id: Option<String>,
pub system_uuid: Option<String>,
pub boot_id: Option<String>,
pub kernel_version: Option<String>,
pub os_image: Option<String>,
pub container_runtime_version: Option<String>,
pub kubelet_version: Option<String>,
pub kube_proxy_version: Option<String>,
pub operating_system: Option<String>,
pub architecture: Option<String>,
pub swap: Option<NodeSwapStatus>,
}
Expand description
NodeSystemInfo is a set of ids/uuids to uniquely identify the node.
Fields§
§machine_id: Option<String>
MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html
system_uuid: Option<String>
SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid
boot_id: Option<String>
Boot ID reported by the node.
kernel_version: Option<String>
Kernel Version reported by the node from ‘uname -r’ (e.g. 3.16.0-0.bpo.4-amd64).
os_image: Option<String>
OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
container_runtime_version: Option<String>
ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).
kubelet_version: Option<String>
Kubelet Version reported by the node.
kube_proxy_version: Option<String>
Deprecated: KubeProxy Version reported by the node.
operating_system: Option<String>
The Operating System reported by the node
architecture: Option<String>
The Architecture reported by the node
swap: Option<NodeSwapStatus>
Swap Info reported by the node.
Implementations§
Source§impl NodeSystemInfo
impl NodeSystemInfo
Sourcepub fn machine_id(&self) -> &str
pub fn machine_id(&self) -> &str
Returns the value of machine_id
, or the default value if machine_id
is unset.
Sourcepub fn system_uuid(&self) -> &str
pub fn system_uuid(&self) -> &str
Returns the value of system_uuid
, or the default value if system_uuid
is unset.
Sourcepub fn boot_id(&self) -> &str
pub fn boot_id(&self) -> &str
Returns the value of boot_id
, or the default value if boot_id
is unset.
Sourcepub fn kernel_version(&self) -> &str
pub fn kernel_version(&self) -> &str
Returns the value of kernel_version
, or the default value if kernel_version
is unset.
Sourcepub fn os_image(&self) -> &str
pub fn os_image(&self) -> &str
Returns the value of os_image
, or the default value if os_image
is unset.
Sourcepub fn container_runtime_version(&self) -> &str
pub fn container_runtime_version(&self) -> &str
Returns the value of container_runtime_version
, or the default value if container_runtime_version
is unset.
Sourcepub fn kubelet_version(&self) -> &str
pub fn kubelet_version(&self) -> &str
Returns the value of kubelet_version
, or the default value if kubelet_version
is unset.
Sourcepub fn kube_proxy_version(&self) -> &str
pub fn kube_proxy_version(&self) -> &str
Returns the value of kube_proxy_version
, or the default value if kube_proxy_version
is unset.
Sourcepub fn operating_system(&self) -> &str
pub fn operating_system(&self) -> &str
Returns the value of operating_system
, or the default value if operating_system
is unset.
Sourcepub fn architecture(&self) -> &str
pub fn architecture(&self) -> &str
Returns the value of architecture
, or the default value if architecture
is unset.
Trait Implementations§
Source§impl Clone for NodeSystemInfo
impl Clone for NodeSystemInfo
Source§fn clone(&self) -> NodeSystemInfo
fn clone(&self) -> NodeSystemInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for NodeSystemInfo
impl Debug for NodeSystemInfo
Source§impl Default for NodeSystemInfo
impl Default for NodeSystemInfo
Source§impl Hash for NodeSystemInfo
impl Hash for NodeSystemInfo
Source§impl Message for NodeSystemInfo
impl Message for NodeSystemInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.