pub enum IdentityAction {
Generate {
agent_id: Option<String>,
force: bool,
no_overwrite: bool,
},
Import {
agent_id: String,
public: PathBuf,
private: Option<PathBuf>,
},
List,
ExportPub {
agent_id: String,
},
}Variants§
Generate
Generate a fresh Ed25519 keypair for --agent-id (or the
NHI-hardened default if omitted) and persist it under the key
storage directory with strict 0600/0644 modes on Unix.
Fields
agent_id: Option<String>Agent identifier. Defaults to the same NHI-hardened id the
rest of the CLI synthesizes (e.g. host:<host>:pid-<pid>-<uuid8>).
Import
Import a keypair from on-disk files written by another tool.
--pub is required; --priv is optional (omit it to import a
public-only handle for verification, e.g., a peer’s allowlist
entry).
Fields
List
List every keypair stored under the key storage directory.
Private keys are never loaded — list is safe to wire into
dashboards and shell autocompletion.
ExportPub
Print a base64-encoded public key for --agent-id to stdout.
Stable URL-safe-no-padding form so the output can be pasted
into a Slack message or a peer allowlist file without binary
hazards.
Trait Implementations§
Source§impl FromArgMatches for IdentityAction
impl FromArgMatches for IdentityAction
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for IdentityAction
impl Subcommand for IdentityAction
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for IdentityAction
impl RefUnwindSafe for IdentityAction
impl Send for IdentityAction
impl Sync for IdentityAction
impl Unpin for IdentityAction
impl UnsafeUnpin for IdentityAction
impl UnwindSafe for IdentityAction
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> ErasedDestructor for Twhere
T: 'static,
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