[][src]Struct kube_conf::user::User

pub struct User {
    pub name: String,
    pub token: Option<String>,
    pub username: Option<String>,
    pub password: Option<String>,
    pub client_certificate: Option<PathBuf>,
    pub client_certificate_data: Option<String>,
    pub client_key: Option<PathBuf>,
    pub client_key_data: Option<String>,
}

A user represents a user that can be used to log in to one of the clusters given in the Cluster struct. The mapping of which user can log in to which clusters are maintained in the Context set found in the Config struct.

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

Fields

name: String

The name given to this user by the user

token: Option<String>username: Option<String>password: Option<String>client_certificate: Option<PathBuf>

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

client_certificate_data: Option<String>

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

client_key: Option<PathBuf>

A PathBuf representing the client key associated with this user. This is a path to a file on the disk.

client_key_data: Option<String>

A string representing the client key associated with this user. This is a base64 encoded string containing the CA data.

Trait Implementations

impl Clone for User[src]

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

Performs copy-assignment from source. Read more

impl Debug for User[src]

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

Auto Trait Implementations

impl Send for User

impl Sync for User

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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.

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

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

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

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