pub trait KubeClientExt2: KubeClientExt {
Show 17 methods
// Provided methods
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_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_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 { ... }
}
Expand description
Async extentions to kube::Client
Provided Methods§
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_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 Pod
s 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 Deployment
s 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 Job
s 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 CronJob
s 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
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.