[][src]Struct kube::config::Config

pub struct Config {
    pub kind: Option<String>,
    pub api_version: Option<String>,
    pub preferences: Option<Preferences>,
    pub clusters: Vec<NamedCluster>,
    pub auth_infos: Vec<NamedAuthInfo>,
    pub contexts: Vec<NamedContext>,
    pub current_context: String,
    pub extensions: Option<Vec<NamedExtension>>,
}

Config stores information to connect remote kubernetes cluster.

This type (and its children) are exposed for convenience only. Please load a Configuration object for use with a kube::Client.

Fields

kind: Option<String>api_version: Option<String>preferences: Option<Preferences>clusters: Vec<NamedCluster>auth_infos: Vec<NamedAuthInfo>contexts: Vec<NamedContext>current_context: Stringextensions: Option<Vec<NamedExtension>>

Methods

impl Config[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<Config>[src]

Read a Config from an arbitrary location

pub fn read() -> Result<Config>[src]

Read a Config from the default location

Trait Implementations

impl Clone for Config[src]

impl Debug for Config[src]

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

impl Serialize for Config[src]

Auto Trait Implementations

impl RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.