[][src]Struct k8_config::KubeConfig

pub struct KubeConfig {
    pub api_version: String,
    pub clusters: Vec<Cluster>,
    pub contexts: Vec<Context>,
    pub current_context: String,
    pub kind: String,
    pub users: Vec<User>,
}

Fields

api_version: Stringclusters: Vec<Cluster>contexts: Vec<Context>current_context: Stringkind: Stringusers: Vec<User>

Methods

impl KubeConfig[src]

pub fn from_home() -> Result<Self, ConfigError>[src]

read from default home directory

pub fn from_file<T: AsRef<Path>>(path: T) -> Result<Self, ConfigError>[src]

pub fn current_context(&self) -> Option<&Context>[src]

pub fn current_cluster(&self) -> Option<&Cluster>[src]

pub fn current_user(&self) -> Option<&User>[src]

Trait Implementations

impl Debug for KubeConfig[src]

impl<'de> Deserialize<'de> for KubeConfig[src]

impl PartialEq<KubeConfig> for KubeConfig[src]

impl StructuralPartialEq for KubeConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.