Struct InspectPodData

Source
pub struct InspectPodData {
Show 33 fields pub cgroup_parent: Option<String>, pub cgroup_path: Option<String>, pub containers: Option<Vec<InspectPodContainerInfo>>, pub create_cgroup: Option<bool>, pub create_command: Option<Vec<String>>, pub create_infra: Option<bool>, pub created: Option<DateTime<Utc>>, pub exit_policy: Option<String>, pub hostname: Option<String>, pub id: Option<String>, pub infra_config: Option<InspectPodInfraConfig>, pub infra_container_id: Option<String>, pub labels: Option<HashMap<String, String>>, pub name: Option<String>, pub namespace: Option<String>, pub num_containers: Option<u64>, pub shared_namespaces: Option<Vec<String>>, pub state: Option<String>, pub blkio_weight: Option<u64>, pub blkio_weight_device: Option<Vec<InspectBlkioWeightDevice>>, pub cpu_period: Option<u64>, pub cpu_quota: Option<i64>, pub cpu_shares: Option<u64>, pub cpuset_cpus: Option<String>, pub cpuset_mems: Option<String>, pub device_read_bps: Option<Vec<InspectBlkioThrottleDevice>>, pub device_write_bps: Option<Vec<InspectBlkioThrottleDevice>>, pub devices: Option<Vec<InspectDevice>>, pub memory_limit: Option<u64>, pub memory_swap: Option<u64>, pub mounts: Option<Vec<InspectMount>>, pub security_opt: Option<Vec<String>>, pub volumes_from: Option<Vec<String>>,
}
Expand description

InspectPodData contains detailed information on a pod’s configuration and state. It is used as the output of Inspect on pods.

Fields§

§cgroup_parent: Option<String>

CgroupParent is the parent of the pod’s Cgroup.

§cgroup_path: Option<String>

CgroupPath is the path to the pod’s Cgroup.

§containers: Option<Vec<InspectPodContainerInfo>>

Containers gives a brief summary of all containers in the pod and their current status.

§create_cgroup: Option<bool>

CreateCgroup is whether this pod will create its own Cgroup to group containers under.

§create_command: Option<Vec<String>>

CreateCommand is the full command plus arguments of the process the container has been created with.

§create_infra: Option<bool>

CreateInfra is whether this pod will create an infra container to share namespaces.

§created: Option<DateTime<Utc>>

Created is the time when the pod was created.

§exit_policy: Option<String>

ExitPolicy of the pod.

§hostname: Option<String>

Hostname is the hostname that the pod will set.

§id: Option<String>

ID is the ID of the pod.

§infra_config: Option<InspectPodInfraConfig>§infra_container_id: Option<String>

InfraContainerID is the ID of the pod’s infra container, if one is present.

§labels: Option<HashMap<String, String>>

Labels is a set of key-value labels that have been applied to the pod.

§name: Option<String>

Name is the name of the pod.

§namespace: Option<String>

Namespace is the Libpod namespace the pod is placed in.

§num_containers: Option<u64>

NumContainers is the number of containers in the pod, including the infra container.

§shared_namespaces: Option<Vec<String>>

SharedNamespaces contains a list of namespaces that will be shared by containers within the pod. Can only be set if CreateInfra is true.

§state: Option<String>

State represents the current state of the pod.

§blkio_weight: Option<u64>

BlkioWeight contains the blkio weight limit for the pod

§blkio_weight_device: Option<Vec<InspectBlkioWeightDevice>>

BlkioWeightDevice contains the blkio weight device limits for the pod

§cpu_period: Option<u64>

CPUPeriod contains the CPU period of the pod

§cpu_quota: Option<i64>

CPUQuota contains the CPU quota of the pod

§cpu_shares: Option<u64>

CPUShares contains the cpu shares for the pod

§cpuset_cpus: Option<String>

CPUSetCPUs contains linux specific CPU data for the pod

§cpuset_mems: Option<String>

CPUSetMems contains linux specific CPU data for the pod

§device_read_bps: Option<Vec<InspectBlkioThrottleDevice>>

BlkioDeviceReadBps contains the Read/Access limit for the pod’s devices

§device_write_bps: Option<Vec<InspectBlkioThrottleDevice>>

BlkioDeviceReadBps contains the Read/Access limit for the pod’s devices

§devices: Option<Vec<InspectDevice>>

Devices contains the specified host devices

§memory_limit: Option<u64>

MemoryLimit contains the specified cgroup memory limit for the pod

§memory_swap: Option<u64>

MemorySwap contains the specified memory swap limit for the pod

§mounts: Option<Vec<InspectMount>>

Mounts contains volume related information for the pod

§security_opt: Option<Vec<String>>

SecurityOpt contains the specified security labels and related SELinux information

§volumes_from: Option<Vec<String>>

VolumesFrom contains the containers that the pod inherits mounts from

Trait Implementations§

Source§

impl Clone for InspectPodData

Source§

fn clone(&self) -> InspectPodData

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InspectPodData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for InspectPodData

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<InspectPodData, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for InspectPodData

Source§

fn eq(&self, other: &InspectPodData) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for InspectPodData

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for InspectPodData

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T