pub struct Kubernetes {
pub kubeconfig: Result<KubeConfig, KubernetesError>,
pub http_client: HttpClient,
pub base_uri: String,
}
Fields§
§kubeconfig: Result<KubeConfig, KubernetesError>
§http_client: HttpClient
§base_uri: String
Implementations§
Source§impl Kubernetes
impl Kubernetes
pub fn connect( kubeconfig_path: Option<String>, scheme: Option<String>, host: Option<String>, port: Option<u32>, search_uri: bool, ) -> Result<Kubernetes, KubernetesError>
pub fn get_events( &self, since: Option<String>, ) -> Result<Vec<Event>, KubernetesError>
pub fn list_pods(&self, namespace: String) -> Result<Vec<Pod>, KubernetesError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Kubernetes
impl !RefUnwindSafe for Kubernetes
impl Send for Kubernetes
impl Sync for Kubernetes
impl Unpin for Kubernetes
impl !UnwindSafe for Kubernetes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more