Struct google_api_proto::google::container::v1::MasterAuth
source · pub struct MasterAuth {
pub username: String,
pub password: String,
pub client_certificate_config: Option<ClientCertificateConfig>,
pub cluster_ca_certificate: String,
pub client_certificate: String,
pub client_key: String,
}
Expand description
The authentication information for accessing the master endpoint. Authentication can be done using HTTP basic auth or using client certificates.
Fields§
§username: String
The username to use for HTTP basic authentication to the master endpoint. For clusters v1.6.0 and later, basic authentication can be disabled by leaving username unspecified (or setting it to the empty string).
Warning: basic authentication is deprecated, and will be removed in GKE control plane versions 1.19 and newer. For a list of recommended authentication methods, see: https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
password: String
The password to use for HTTP basic authentication to the master endpoint. Because the master endpoint is open to the Internet, you should create a strong password. If a password is provided for cluster creation, username must be non-empty.
Warning: basic authentication is deprecated, and will be removed in GKE control plane versions 1.19 and newer. For a list of recommended authentication methods, see: https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication
client_certificate_config: Option<ClientCertificateConfig>
Configuration for client certificate authentication on the cluster. For clusters before v1.12, if no configuration is specified, a client certificate is issued.
cluster_ca_certificate: String
Output only. Base64-encoded public certificate that is the root of trust for the cluster.
client_certificate: String
Output only. Base64-encoded public certificate used by clients to authenticate to the cluster endpoint.
client_key: String
Output only. Base64-encoded private key used by clients to authenticate to the cluster endpoint.
Trait Implementations§
source§impl Clone for MasterAuth
impl Clone for MasterAuth
source§fn clone(&self) -> MasterAuth
fn clone(&self) -> MasterAuth
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MasterAuth
impl Debug for MasterAuth
source§impl Default for MasterAuth
impl Default for MasterAuth
source§impl Message for MasterAuth
impl Message for MasterAuth
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for MasterAuth
impl PartialEq for MasterAuth
source§fn eq(&self, other: &MasterAuth) -> bool
fn eq(&self, other: &MasterAuth) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MasterAuth
Auto Trait Implementations§
impl Freeze for MasterAuth
impl RefUnwindSafe for MasterAuth
impl Send for MasterAuth
impl Sync for MasterAuth
impl Unpin for MasterAuth
impl UnwindSafe for MasterAuth
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request