Struct kube::config::AuthInfo[][src]

pub struct AuthInfo {
    pub username: Option<String>,
    pub password: Option<String>,
    pub token: Option<String>,
    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<String>,
    pub impersonate: Option<String>,
    pub impersonate_groups: Option<Vec<String, Global>>,
    pub auth_provider: Option<AuthProviderConfig>,
    pub exec: Option<ExecConfig>,
}
This is supported on crate feature 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<String>

The password for basic authentication to the kubernetes cluster.

token: Option<String>

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

client_key: Option<String>

Path to a client key file for TLS.

client_key_data: Option<String>

PEM-encoded data from a client key file for TLS. Overrides client_key

impersonate: Option<String>

The username to act-as.

impersonate_groups: Option<Vec<String, Global>>

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more