[][src]Struct kube_conf::cluster::Cluster

pub struct Cluster {
    pub name: String,
    pub server: String,
    pub certificate_authority: Option<PathBuf>,
    pub certificate_authority_data: Option<String>,
    pub insecure_skip_tls_verify: bool,
}

A cluster represents a cluster that the user knows how to connect to.

Note: The cluster struct is flattened when compared to its representation in the yaml file. There is no cluster mapping, the values of the cluster mapping are directly accessible on the Cluster struct.

Fields

name: String

The name given to the cluster by the user

server: String

The HTTP address to the server, including protocol

certificate_authority: Option<PathBuf>

A PathBuf representing the certificate authority associated with this cluster. This is a path to a file on the disk.

certificate_authority_data: Option<String>

A string representing the certificate authority associated with this cluster. This is a base64 encoded string containing the CA data.

insecure_skip_tls_verify: bool

When set to true this is a signal that any certificate checking should be bypassed by the user agent.

Trait Implementations

impl Clone for Cluster[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Cluster[src]

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

Auto Trait Implementations

impl Send for Cluster

impl Sync for Cluster

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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

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