Struct kubeclient::clients::KubeClient
[−]
[src]
pub struct KubeClient<R> { /* fields omitted */ }
Methods
impl<R> KubeClient<R>
[src]
fn namespace(&self, namespace: &str) -> Self
[src]
Get a kubernetes client that uses a specific namespace
impl KubeClient<Deployment>
[src]
fn scale(&self, deployment_name: &str, count: u32) -> Result<Scale>
[src]
Scale a deployment to a specific number of pods
Examples
let kube = Kubernetes::load_conf("admin.conf")?; kube.deployments().scale("web-server", 7)?;
Trait Implementations
impl<R: Resource> ReadClient for KubeClient<R>
[src]
type R = R
fn exists(&self, name: &str) -> Result<bool>
[src]
Indicates whether or not the named resource exists in the Kubernetes cluster Read more
fn get(&self, name: &str) -> Result<Self::R>
[src]
Gets the named resource Read more
impl<R: ListableResource> ListClient for KubeClient<R>
[src]
type R = R
fn list(&self, query: Option<&ListQuery>) -> Result<Vec<Self::R>>
[src]
Lists resources of a particular type Read more