pub enum K8sObject {
Show 19 variants
Deployment(Box<DeploymentData>),
StatefulSet(Box<StatefulSetData>),
DaemonSet(Box<DaemonSetData>),
ReplicaSet(Box<ReplicaSetData>),
Pod(Box<PodData>),
Job(Box<JobData>),
CronJob(Box<CronJobData>),
Service(Box<ServiceData>),
Ingress(Box<IngressData>),
NetworkPolicy(Box<NetworkPolicyData>),
Role(Box<RoleData>),
ClusterRole(Box<ClusterRoleData>),
RoleBinding(Box<RoleBindingData>),
ClusterRoleBinding(Box<ClusterRoleBindingData>),
ServiceAccount(Box<ServiceAccountData>),
HorizontalPodAutoscaler(Box<HpaData>),
PodDisruptionBudget(Box<PdbData>),
PersistentVolumeClaim(Box<PvcData>),
Unknown(Box<UnknownObject>),
}Expand description
Enum representing all supported Kubernetes object types.
This enum provides type-safe access to K8s objects while also supporting unknown/custom types via the Unknown variant.
Variants§
Deployment(Box<DeploymentData>)
StatefulSet(Box<StatefulSetData>)
DaemonSet(Box<DaemonSetData>)
ReplicaSet(Box<ReplicaSetData>)
Pod(Box<PodData>)
Job(Box<JobData>)
CronJob(Box<CronJobData>)
Service(Box<ServiceData>)
Ingress(Box<IngressData>)
NetworkPolicy(Box<NetworkPolicyData>)
Role(Box<RoleData>)
ClusterRole(Box<ClusterRoleData>)
RoleBinding(Box<RoleBindingData>)
ClusterRoleBinding(Box<ClusterRoleBindingData>)
ServiceAccount(Box<ServiceAccountData>)
HorizontalPodAutoscaler(Box<HpaData>)
PodDisruptionBudget(Box<PdbData>)
PersistentVolumeClaim(Box<PvcData>)
Unknown(Box<UnknownObject>)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for K8sObject
impl RefUnwindSafe for K8sObject
impl Send for K8sObject
impl Sync for K8sObject
impl Unpin for K8sObject
impl UnwindSafe for K8sObject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.