pub trait KubeClientExt: Clone {
Show 40 methods
// Required methods
fn api<K>(&self) -> Api<K>
where K: Resource,
<K as Resource>::DynamicType: Default;
fn default_namespaced_api<K>(&self) -> Api<K>
where K: Resource<Scope = NamespaceResourceScope>,
<K as Resource>::DynamicType: Default;
fn namespaced_api<K>(&self, namespace: &str) -> Api<K>
where K: Resource<Scope = NamespaceResourceScope>,
<K as Resource>::DynamicType: Default;
// Provided methods
fn delete_params(&self) -> DeleteParams { ... }
fn background_delete(&self) -> DeleteParams { ... }
fn foreground_delete(&self) -> DeleteParams { ... }
fn orphan_delete(&self) -> DeleteParams { ... }
fn list_params(&self) -> ListParams { ... }
fn watch_params(&self) -> WatchParams { ... }
fn post_params(&self) -> PostParams { ... }
fn post_params_with_manager(&self, manager: &str) -> PostParams { ... }
fn patch_params(&self) -> PatchParams { ... }
fn patch_params_with_manager(&self, manager: &str) -> PatchParams { ... }
fn log_params(&self) -> LogParams { ... }
fn log_params_previous(&self) -> LogParams { ... }
fn apiservices(&self) -> Api<APIService> { ... }
fn clusterroles(&self) -> Api<ClusterRole> { ... }
fn clusterrolebindings(&self) -> Api<ClusterRoleBinding> { ... }
fn crds(&self) -> Api<CustomResourceDefinition> { ... }
fn endpoints<'a>(
&self,
namespace: impl Into<Option<&'a str>>,
) -> Api<Endpoints> { ... }
fn nodes(&self) -> Api<Node> { ... }
fn namespaces(&self) -> Api<Namespace> { ... }
fn persistentvolumes(&self) -> Api<PersistentVolume> { ... }
fn storageclasses(&self) -> Api<StorageClass> { ... }
fn configmaps<'a>(
&self,
namespace: impl Into<Option<&'a str>>,
) -> Api<ConfigMap> { ... }
fn daemonsets<'a>(
&self,
namespace: impl Into<Option<&'a str>>,
) -> Api<DaemonSet> { ... }
fn deployments<'a>(
&self,
namespace: impl Into<Option<&'a str>>,
) -> Api<Deployment> { ... }
fn horizontalpodautoscalers<'a>(
&self,
namespace: impl Into<Option<&'a str>>,
) -> Api<HorizontalPodAutoscaler> { ... }
fn jobs<'a>(&self, namespace: impl Into<Option<&'a str>>) -> Api<Job> { ... }
fn cronjobs<'a>(
&self,
namespace: impl Into<Option<&'a str>>,
) -> Api<CronJob> { ... }
fn persistentvolumeclaims<'a>(
&self,
namespace: impl Into<Option<&'a str>>,
) -> Api<PersistentVolumeClaim> { ... }
fn replicasets<'a>(
&self,
namespace: impl Into<Option<&'a str>>,
) -> Api<ReplicaSet> { ... }
fn roles<'a>(&self, namespace: impl Into<Option<&'a str>>) -> Api<Role> { ... }
fn rolebindings<'a>(
&self,
namespace: impl Into<Option<&'a str>>,
) -> Api<RoleBinding> { ... }
fn secrets<'a>(&self, namespace: impl Into<Option<&'a str>>) -> Api<Secret> { ... }
fn pods<'a>(&self, namespace: impl Into<Option<&'a str>>) -> Api<Pod> { ... }
fn serviceaccounts<'a>(
&self,
namespace: impl Into<Option<&'a str>>,
) -> Api<ServiceAccount> { ... }
fn services<'a>(
&self,
namespace: impl Into<Option<&'a str>>,
) -> Api<Service> { ... }
fn statefulsets<'a>(
&self,
namespace: impl Into<Option<&'a str>>,
) -> Api<StatefulSet> { ... }
fn namespaced_k<'a, K>(
&self,
namespace: impl Into<Option<&'a str>>,
) -> Api<K>
where K: Resource<Scope = NamespaceResourceScope>,
<K as Resource>::DynamicType: Default { ... }
}
Required Methods§
fn api<K>(&self) -> Api<K>
fn default_namespaced_api<K>(&self) -> Api<K>
fn namespaced_api<K>(&self, namespace: &str) -> Api<K>
Provided Methods§
fn delete_params(&self) -> DeleteParams
fn background_delete(&self) -> DeleteParams
fn foreground_delete(&self) -> DeleteParams
fn orphan_delete(&self) -> DeleteParams
fn list_params(&self) -> ListParams
fn watch_params(&self) -> WatchParams
fn post_params(&self) -> PostParams
fn post_params_with_manager(&self, manager: &str) -> PostParams
fn patch_params(&self) -> PatchParams
fn patch_params_with_manager(&self, manager: &str) -> PatchParams
fn log_params(&self) -> LogParams
fn log_params_previous(&self) -> LogParams
fn apiservices(&self) -> Api<APIService>
fn clusterroles(&self) -> Api<ClusterRole>
fn clusterrolebindings(&self) -> Api<ClusterRoleBinding>
fn crds(&self) -> Api<CustomResourceDefinition>
fn endpoints<'a>(&self, namespace: impl Into<Option<&'a str>>) -> Api<Endpoints>
fn nodes(&self) -> Api<Node>
fn namespaces(&self) -> Api<Namespace>
fn persistentvolumes(&self) -> Api<PersistentVolume>
fn storageclasses(&self) -> Api<StorageClass>
fn configmaps<'a>( &self, namespace: impl Into<Option<&'a str>>, ) -> Api<ConfigMap>
fn daemonsets<'a>( &self, namespace: impl Into<Option<&'a str>>, ) -> Api<DaemonSet>
fn deployments<'a>( &self, namespace: impl Into<Option<&'a str>>, ) -> Api<Deployment>
fn horizontalpodautoscalers<'a>( &self, namespace: impl Into<Option<&'a str>>, ) -> Api<HorizontalPodAutoscaler>
fn jobs<'a>(&self, namespace: impl Into<Option<&'a str>>) -> Api<Job>
fn cronjobs<'a>(&self, namespace: impl Into<Option<&'a str>>) -> Api<CronJob>
fn persistentvolumeclaims<'a>( &self, namespace: impl Into<Option<&'a str>>, ) -> Api<PersistentVolumeClaim>
fn replicasets<'a>( &self, namespace: impl Into<Option<&'a str>>, ) -> Api<ReplicaSet>
fn roles<'a>(&self, namespace: impl Into<Option<&'a str>>) -> Api<Role>
fn rolebindings<'a>( &self, namespace: impl Into<Option<&'a str>>, ) -> Api<RoleBinding>
fn secrets<'a>(&self, namespace: impl Into<Option<&'a str>>) -> Api<Secret>
fn pods<'a>(&self, namespace: impl Into<Option<&'a str>>) -> Api<Pod>
fn serviceaccounts<'a>( &self, namespace: impl Into<Option<&'a str>>, ) -> Api<ServiceAccount>
fn services<'a>(&self, namespace: impl Into<Option<&'a str>>) -> Api<Service>
fn statefulsets<'a>( &self, namespace: impl Into<Option<&'a str>>, ) -> Api<StatefulSet>
fn namespaced_k<'a, K>(&self, namespace: impl Into<Option<&'a str>>) -> Api<K>
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.