Struct k8s_cluster_api::v1beta1::bootstrap::kubeadm::BootstrapToken
source · [−]pub struct BootstrapToken {
pub token: String,
pub description: Option<String>,
pub ttl: Option<i64>,
pub expires: Option<Time>,
pub usages: Vec<String>,
pub groups: Vec<String>,
}
Expand description
BootstrapToken describes one bootstrap token, stored as a Secret in the cluster.
Fields
token: String
Token is used for establishing bidirectional trust between nodes and control-planes. Used for joining nodes in the cluster.
description: Option<String>
Description sets a human-friendly message why this token exists and what it’s used for, so other administrators can know its purpose.
ttl: Option<i64>
TTL defines the time to live for this token. Defaults to 24h. Expires and TTL are mutually exclusive.
expires: Option<Time>
Expires specifies the timestamp when this token expires. Defaults to being set dynamically at runtime based on the TTL. Expires and TTL are mutually exclusive.
usages: Vec<String>
Usages describes the ways in which this token can be used. Can by default be used for establishing bidirectional trust, but that can be changed here.
groups: Vec<String>
Groups specifies the extra groups that this token will authenticate as when/if used for authentication
Trait Implementations
sourceimpl Clone for BootstrapToken
impl Clone for BootstrapToken
sourcefn clone(&self) -> BootstrapToken
fn clone(&self) -> BootstrapToken
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BootstrapToken
impl Debug for BootstrapToken
sourceimpl Default for BootstrapToken
impl Default for BootstrapToken
sourcefn default() -> BootstrapToken
fn default() -> BootstrapToken
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for BootstrapToken
impl<'de> Deserialize<'de> for BootstrapToken
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for BootstrapToken
impl Serialize for BootstrapToken
Auto Trait Implementations
impl RefUnwindSafe for BootstrapToken
impl Send for BootstrapToken
impl Sync for BootstrapToken
impl Unpin for BootstrapToken
impl UnwindSafe for BootstrapToken
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more