pub trait KubeClientExt2: KubeClientExt {
Show 28 methods
// Provided methods
fn get_configmap_opt<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Option<ConfigMap>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn get_configmap<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<ConfigMap>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn get_secret_opt<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Option<Secret>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn get_secret<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Secret>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn get_deployment_opt<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Option<Deployment>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn get_deployment<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Deployment>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn get_statefulset_opt<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Option<StatefulSet>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn get_statefulset<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<StatefulSet>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn get_apiservice_opt<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<APIService>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn get_apiservice<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<APIService>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn get_crd_opt<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<CustomResourceDefinition>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn get_crd<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<CustomResourceDefinition>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn get_owner_k<'life0, 'life1, 'async_trait, O, K>(
&'life0 self,
o: &'life1 O,
) -> Pin<Box<dyn Future<Output = Result<Option<K>>> + Send + 'async_trait>>
where O: ResourceExt + Sync + 'async_trait,
K: Clone + Debug + DeserializeOwned + Resource<Scope = NamespaceResourceScope> + 'async_trait,
<K as Resource>::DynamicType: Default,
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn list_pods<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<Pod>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn list_deployments<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<Deployment>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn list_replicasets<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<ReplicaSet>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn list_jobs<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<Job>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn list_cronjobs<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<CronJob>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn list_secrets<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<Secret>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn list_services<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<Service>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn list_statefulsets<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<StatefulSet>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn list_configmaps<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<ConfigMap>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn list_serviceaccounts<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<ServiceAccount>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn list_k<'life0, 'life1, 'async_trait, K>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<K>>> + Send + 'async_trait>>
where K: Clone + Debug + DeserializeOwned + Resource<Scope = NamespaceResourceScope> + 'async_trait,
<K as Resource>::DynamicType: Default,
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn get_pods_by_deployment_name<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Pod>>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
fn get_pods_by_deployment<'life0, 'life1, 'async_trait>(
&'life0 self,
deployment: &'life1 Deployment,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Pod>>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn get_pods_by_statefulset<'life0, 'life1, 'async_trait>(
&'life0 self,
statefulset: &'life1 StatefulSet,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Pod>>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn get_pods_by_statefulset_name<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Pod>>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
}Expand description
Async extentions to kube::Client
Provided Methods§
Sourcefn get_configmap_opt<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Option<ConfigMap>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_configmap_opt<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Option<ConfigMap>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get named configmap from a given (or default) namespace
Return None if not found`
Sourcefn get_configmap<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<ConfigMap>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_configmap<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<ConfigMap>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get named configmap from a given (or default) namespace
Sourcefn get_secret_opt<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Option<Secret>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_secret_opt<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Option<Secret>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get named secret from a given (or default) namespace
Return None if not found`
Sourcefn get_secret<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Secret>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_secret<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Secret>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get named secret from a given (or default) namespace
Sourcefn get_deployment_opt<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Option<Deployment>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_deployment_opt<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Option<Deployment>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get named deployment from a given (or default) namespace
Return None if not found
Sourcefn get_deployment<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Deployment>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_deployment<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Deployment>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get named deployment from a given (or default) namespace
Sourcefn get_statefulset_opt<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Option<StatefulSet>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_statefulset_opt<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Option<StatefulSet>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get named statefulset from a given (or default) namespace
Return None if not found
Sourcefn get_statefulset<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<StatefulSet>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_statefulset<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<StatefulSet>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get named statefulset from a given (or default) namespace
Sourcefn get_apiservice_opt<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<APIService>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_apiservice_opt<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<APIService>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get named api service
Return None if not found
Sourcefn get_apiservice<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<APIService>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_apiservice<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<APIService>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get named api service
Sourcefn get_crd_opt<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<CustomResourceDefinition>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_crd_opt<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<CustomResourceDefinition>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get named CRD
Return None if not found
Sourcefn get_crd<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<CustomResourceDefinition>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_crd<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<CustomResourceDefinition>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get named CRD
Sourcefn get_owner_k<'life0, 'life1, 'async_trait, O, K>(
&'life0 self,
o: &'life1 O,
) -> Pin<Box<dyn Future<Output = Result<Option<K>>> + Send + 'async_trait>>where
O: ResourceExt + Sync + 'async_trait,
K: Clone + Debug + DeserializeOwned + Resource<Scope = NamespaceResourceScope> + 'async_trait,
<K as Resource>::DynamicType: Default,
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_owner_k<'life0, 'life1, 'async_trait, O, K>(
&'life0 self,
o: &'life1 O,
) -> Pin<Box<dyn Future<Output = Result<Option<K>>> + Send + 'async_trait>>where
O: ResourceExt + Sync + 'async_trait,
K: Clone + Debug + DeserializeOwned + Resource<Scope = NamespaceResourceScope> + 'async_trait,
<K as Resource>::DynamicType: Default,
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get owner object from ownerReference assuming it is of kind K
Sourcefn list_pods<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<Pod>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_pods<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<Pod>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List all Pods in a given (or default) namespace
Sourcefn list_deployments<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<Deployment>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_deployments<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<Deployment>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List all Deployments in a given (or default) namespace
Sourcefn list_replicasets<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<ReplicaSet>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_replicasets<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<ReplicaSet>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List all ReplicaSets in a given (or default) namespace
Sourcefn list_jobs<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<Job>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_jobs<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<Job>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List all Jobs in a given (or default) namespace
Sourcefn list_cronjobs<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<CronJob>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_cronjobs<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<CronJob>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List all CronJobs in a given (or default) namespace
Sourcefn list_secrets<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<Secret>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_secrets<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<Secret>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List all Secrets in a given (or default) namespace
Sourcefn list_services<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<Service>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_services<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<Service>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List all Services in a given (or default) namespace
Sourcefn list_statefulsets<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<StatefulSet>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_statefulsets<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<StatefulSet>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List all StatefulSets in a given (or default) namespace
Sourcefn list_configmaps<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<ConfigMap>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_configmaps<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<ConfigMap>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List all ConfigMaps in a given (or default) namespace
Sourcefn list_serviceaccounts<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<ServiceAccount>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_serviceaccounts<'life0, 'life1, 'async_trait>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<ServiceAccount>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List all ServiceAccounts in a given (or default) namespace
Sourcefn list_k<'life0, 'life1, 'async_trait, K>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<K>>> + Send + 'async_trait>>where
K: Clone + Debug + DeserializeOwned + Resource<Scope = NamespaceResourceScope> + 'async_trait,
<K as Resource>::DynamicType: Default,
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_k<'life0, 'life1, 'async_trait, K>(
&'life0 self,
namespace: impl 'async_trait + Into<Option<&'life1 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Vec<K>>> + Send + 'async_trait>>where
K: Clone + Debug + DeserializeOwned + Resource<Scope = NamespaceResourceScope> + 'async_trait,
<K as Resource>::DynamicType: Default,
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List namespaced objects of kind K in a given (or default) namespace
Sourcefn get_pods_by_deployment_name<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Pod>>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_pods_by_deployment_name<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Pod>>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get all the pods associated with the deployment
The logic is based on what kubectl describe does
Sourcefn get_pods_by_deployment<'life0, 'life1, 'async_trait>(
&'life0 self,
deployment: &'life1 Deployment,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Pod>>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_pods_by_deployment<'life0, 'life1, 'async_trait>(
&'life0 self,
deployment: &'life1 Deployment,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Pod>>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get all the pods associated with the deployment
The logic is based on what kubectl describe does
Sourcefn get_pods_by_statefulset<'life0, 'life1, 'async_trait>(
&'life0 self,
statefulset: &'life1 StatefulSet,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Pod>>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_pods_by_statefulset<'life0, 'life1, 'async_trait>(
&'life0 self,
statefulset: &'life1 StatefulSet,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Pod>>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get all the pods controlled by a given statefulset
fn get_pods_by_statefulset_name<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
namespace: impl 'async_trait + Into<Option<&'life2 str>> + Send,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<Pod>>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
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.