kube_client_ext

Trait KubeClientExt

Source
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§

Source

fn api<K>(&self) -> Api<K>
where K: Resource, <K as Resource>::DynamicType: Default,

Source

fn default_namespaced_api<K>(&self) -> Api<K>

Source

fn namespaced_api<K>(&self, namespace: &str) -> Api<K>

Provided Methods§

Source

fn delete_params(&self) -> DeleteParams

Source

fn background_delete(&self) -> DeleteParams

Source

fn foreground_delete(&self) -> DeleteParams

Source

fn orphan_delete(&self) -> DeleteParams

Source

fn list_params(&self) -> ListParams

Source

fn watch_params(&self) -> WatchParams

Source

fn post_params(&self) -> PostParams

Source

fn post_params_with_manager(&self, manager: &str) -> PostParams

Source

fn patch_params(&self) -> PatchParams

Source

fn patch_params_with_manager(&self, manager: &str) -> PatchParams

Source

fn log_params(&self) -> LogParams

Source

fn log_params_previous(&self) -> LogParams

Source

fn apiservices(&self) -> Api<APIService>

Source

fn clusterroles(&self) -> Api<ClusterRole>

Source

fn clusterrolebindings(&self) -> Api<ClusterRoleBinding>

Source

fn crds(&self) -> Api<CustomResourceDefinition>

Source

fn endpoints<'a>(&self, namespace: impl Into<Option<&'a str>>) -> Api<Endpoints>

Source

fn nodes(&self) -> Api<Node>

Source

fn namespaces(&self) -> Api<Namespace>

Source

fn persistentvolumes(&self) -> Api<PersistentVolume>

Source

fn storageclasses(&self) -> Api<StorageClass>

Source

fn configmaps<'a>( &self, namespace: impl Into<Option<&'a str>>, ) -> Api<ConfigMap>

Source

fn daemonsets<'a>( &self, namespace: impl Into<Option<&'a str>>, ) -> Api<DaemonSet>

Source

fn deployments<'a>( &self, namespace: impl Into<Option<&'a str>>, ) -> Api<Deployment>

Source

fn horizontalpodautoscalers<'a>( &self, namespace: impl Into<Option<&'a str>>, ) -> Api<HorizontalPodAutoscaler>

Source

fn jobs<'a>(&self, namespace: impl Into<Option<&'a str>>) -> Api<Job>

Source

fn cronjobs<'a>(&self, namespace: impl Into<Option<&'a str>>) -> Api<CronJob>

Source

fn persistentvolumeclaims<'a>( &self, namespace: impl Into<Option<&'a str>>, ) -> Api<PersistentVolumeClaim>

Source

fn replicasets<'a>( &self, namespace: impl Into<Option<&'a str>>, ) -> Api<ReplicaSet>

Source

fn roles<'a>(&self, namespace: impl Into<Option<&'a str>>) -> Api<Role>

Source

fn rolebindings<'a>( &self, namespace: impl Into<Option<&'a str>>, ) -> Api<RoleBinding>

Source

fn secrets<'a>(&self, namespace: impl Into<Option<&'a str>>) -> Api<Secret>

Source

fn pods<'a>(&self, namespace: impl Into<Option<&'a str>>) -> Api<Pod>

Source

fn serviceaccounts<'a>( &self, namespace: impl Into<Option<&'a str>>, ) -> Api<ServiceAccount>

Source

fn services<'a>(&self, namespace: impl Into<Option<&'a str>>) -> Api<Service>

Source

fn statefulsets<'a>( &self, namespace: impl Into<Option<&'a str>>, ) -> Api<StatefulSet>

Source

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.

Implementations on Foreign Types§

Source§

impl KubeClientExt for Client

Source§

fn api<K>(&self) -> Api<K>
where K: Resource, <K as Resource>::DynamicType: Default,

Source§

fn default_namespaced_api<K>(&self) -> Api<K>

Source§

fn namespaced_api<K>(&self, namespace: &str) -> Api<K>

Implementors§