pub struct TokenMintArgs {
pub scope: TokenScopeArg,
pub token: Option<String>,
pub token_file: Option<PathBuf>,
pub working_dir: Option<PathBuf>,
pub out: Option<PathBuf>,
}Expand description
astrs token mint arguments.
Unlike every other verb group in this file, minting never dials a
coordinator: it only needs the root secret already on this machine (the
same --token/--token-file/--working-dir resolution every
coordinator-facing verb uses, via crate::runtime_dir::find_token),
and the scope derivation is a pure function of it
(astrs_coordinator::auth::derive_read_token) — so it takes no
ConnectArgs.
Fields§
§scope: TokenScopeArgThe scope to mint a credential for.
token: Option<String>An explicit root token, instead of resolving one (§16). Prefer
--token-file: an argument is visible in ps.
token_file: Option<PathBuf>Read the root token from this file instead of
<working-dir>/.astrs-token.
working_dir: Option<PathBuf>The directory .astrs-token is looked up in; defaults to the
process’s current directory (§16).
out: Option<PathBuf>Write the minted credential to this file (mode 0600) instead of
printing it to stdout.
Trait Implementations§
Source§impl Args for TokenMintArgs
impl Args for TokenMintArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for TokenMintArgs
impl Debug for TokenMintArgs
Source§impl FromArgMatches for TokenMintArgs
impl FromArgMatches for TokenMintArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for TokenMintArgs
impl RefUnwindSafe for TokenMintArgs
impl Send for TokenMintArgs
impl Sync for TokenMintArgs
impl Unpin for TokenMintArgs
impl UnsafeUnpin for TokenMintArgs
impl UnwindSafe for TokenMintArgs
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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