PodGetExt

Trait PodGetExt 

Source
pub trait PodGetExt {
    const POD_SCHEDULED: &str = "PodScheduled";
    const POD_PENDING: &str = "Pending";
    const POD_RUNNING: &str = "Running";
    const POD_SUCCEEDED: &str = "Succeeded";
    const POD_FAILED: &str = "Failed";
    const POD_UNKNOWN: &str = "Unknown";
Show 29 methods // Required methods fn spec(&self) -> Option<&PodSpec>; fn status(&self) -> Option<&PodStatus>; // Provided methods fn containers(&self) -> Option<&[Container]> { ... } fn ephemeral_containers(&self) -> Option<&[EphemeralContainer]> { ... } fn init_containers(&self) -> Option<&[Container]> { ... } fn node_selector(&self) -> Option<&BTreeMap<String, String>> { ... } fn resource_claims(&self) -> Option<&[PodResourceClaim]> { ... } fn tolerations(&self) -> Option<&[Toleration]> { ... } fn readiness_gates(&self) -> Option<&[PodReadinessGate]> { ... } fn message(&self) -> Option<&str> { ... } fn phase(&self) -> Option<&str> { ... } fn qos_class(&self) -> Option<&str> { ... } fn reason(&self) -> Option<&str> { ... } fn resize(&self) -> Option<&str> { ... } fn conditions(&self) -> Option<&[PodCondition]> { ... } fn container_statuses(&self) -> Option<&[ContainerStatus]> { ... } fn ephemeral_container_statuses(&self) -> Option<&[ContainerStatus]> { ... } fn init_container_statuses(&self) -> Option<&[ContainerStatus]> { ... } fn nominated_node_name(&self) -> Option<&str> { ... } fn resource_claim_statuses(&self) -> Option<&[PodResourceClaimStatus]> { ... } fn host_ip(&self) -> Option<&str> { ... } fn host_ips(&self) -> Option<&[HostIP]> { ... } fn pod_ip(&self) -> Option<&str> { ... } fn pod_ips(&self) -> Option<&[PodIP]> { ... } fn start_time(&self) -> Option<&Time> { ... } fn condition(&self, type_: &str) -> Option<&PodCondition> { ... } fn is_running(&self) -> bool { ... } fn is_ready(&self) -> bool { ... } fn pod_scheduled_reason(&self) -> Option<&str> { ... }
}

Provided Associated Constants§

Source

const POD_SCHEDULED: &str = "PodScheduled"

👎Deprecated: Use corev1::PodCondition::POD_SCHEDULED instead
Source

const POD_PENDING: &str = "Pending"

The Pod has been accepted by the Kubernetes cluster, but one or more of the containers has not been set up and made ready to run. This includes time a Pod spends waiting to be scheduled as well as the time spent downloading container images over the network.

Source

const POD_RUNNING: &str = "Running"

The Pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting.

Source

const POD_SUCCEEDED: &str = "Succeeded"

All containers in the Pod have terminated in success, and will not be restarted.

Source

const POD_FAILED: &str = "Failed"

All containers in the Pod have terminated, and at least one container has terminated in failure. That is, the container either exited with non-zero status or was terminated by the system, and is not set for automatic restarting.

Source

const POD_UNKNOWN: &str = "Unknown"

For some reason the state of the Pod could not be obtained. This phase typically occurs due to an error in communicating with the node where the Pod should be running.

Required Methods§

Source

fn spec(&self) -> Option<&PodSpec>

Source

fn status(&self) -> Option<&PodStatus>

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§