pub struct AuthInfo {
pub username: Option<String>,
pub password: Option<SecretString>,
pub token: Option<SecretString>,
pub token_file: Option<String>,
pub client_certificate: Option<String>,
pub client_certificate_data: Option<String>,
pub client_key: Option<String>,
pub client_key_data: Option<SecretString>,
pub impersonate: Option<String>,
pub impersonate_groups: Option<Vec<String>>,
pub auth_provider: Option<AuthProviderConfig>,
pub exec: Option<ExecConfig>,
}
config
only.Expand description
AuthInfo stores information to tell cluster who you are.
Fields§
§username: Option<String>
The username for basic authentication to the kubernetes cluster.
password: Option<SecretString>
The password for basic authentication to the kubernetes cluster.
token: Option<SecretString>
The bearer token for authentication to the kubernetes cluster.
token_file: Option<String>
Pointer to a file that contains a bearer token (as described above). If both token
and token_fileare present,
token` takes precedence.
client_certificate: Option<String>
Path to a client cert file for TLS.
client_certificate_data: Option<String>
PEM-encoded data from a client cert file for TLS. Overrides client_certificate
this key should be base64 encoded instead of the decode string data
client_key: Option<String>
Path to a client key file for TLS.
client_key_data: Option<SecretString>
PEM-encoded data from a client key file for TLS. Overrides client_key
this key should be base64 encoded instead of the decode string data
impersonate: Option<String>
The username to act-as.
impersonate_groups: Option<Vec<String>>
The groups to imperonate.
auth_provider: Option<AuthProviderConfig>
Specifies a custom authentication plugin for the kubernetes cluster.
exec: Option<ExecConfig>
Specifies a custom exec-based authentication plugin for the kubernetes cluster.
Trait Implementations§
source§impl<'de> Deserialize<'de> for AuthInfo
impl<'de> Deserialize<'de> for AuthInfo
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for AuthInfo
impl RefUnwindSafe for AuthInfo
impl Send for AuthInfo
impl Sync for AuthInfo
impl Unpin for AuthInfo
impl UnwindSafe for AuthInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more