[−][src]Struct kube::config::Kubeconfig
Kubeconfig
represents information on how to connect to a remote Kubernetes cluster
that is normally stored in ~/.kube/config
This type (and its children) are exposed for convenience only.
Please load a Config
object for use with a Client
which will read and parse the kubeconfig file
Fields
kind: Option<String>
api_version: Option<String>
preferences: Option<Preferences>
clusters: Vec<NamedCluster>
auth_infos: Vec<NamedAuthInfo>
contexts: Vec<NamedContext>
current_context: String
extensions: Option<Vec<NamedExtension>>
Implementations
impl Kubeconfig
[src]
Some helpers on the raw Config object are exposed for people needing to parse it
pub fn read_from<P: AsRef<Path>>(path: P) -> Result<Kubeconfig>
[src]
Read a Config from an arbitrary location
pub fn read() -> Result<Kubeconfig>
[src]
Read a Config from the default location
Trait Implementations
impl Clone for Kubeconfig
[src]
fn clone(&self) -> Kubeconfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Kubeconfig
[src]
impl<'de> Deserialize<'de> for Kubeconfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Kubeconfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for Kubeconfig
impl Send for Kubeconfig
impl Sync for Kubeconfig
impl Unpin for Kubeconfig
impl UnwindSafe for Kubeconfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,