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§
Source§impl Clone for BootstrapToken
impl Clone for BootstrapToken
Source§fn clone(&self) -> BootstrapToken
fn clone(&self) -> BootstrapToken
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more