pub enum EnrollCommand {
Op {
handle: String,
json: bool,
},
OrgCreate {
handle: String,
json: bool,
},
OrgAddMember {
op_did: String,
org: String,
json: bool,
},
Republish {
json: bool,
},
}Expand description
wire enroll … — mint the operator/org identities + certs the offline
org-membership layer (RFC-001) consumes. Keys are stored 0600 alongside
private.key. (Publishing these claims on the agent’s own card — the
card-emit integration — is a separate follow-up.)
Variants§
Op
Mint this machine’s operator root key (op.key) and print its op_did.
OrgCreate
Mint an organization root key and print its org_did + org_pubkey.
OrgAddMember
Issue a membership cert: the named org signs an operator’s op_did.
Prints the {org_did, org_pubkey, member_cert} bundle for the operator
to add to their card’s org_memberships[].
Fields
Republish
Rebuild the agent card with the current enrollment state and
republish to the phonebook. Closes the enroll-after-init DX gap:
claims are normally attached at card-build time, but an operator who
enrolls AFTER init has a stored card that pre-dates the claims. Run
this once after wire enroll op / org-add-member to surface them.
Idempotent: not-enrolled rebuilds a claims-free card; not-bound prints
“local only”.
Trait Implementations§
Source§impl Debug for EnrollCommand
impl Debug for EnrollCommand
Source§impl FromArgMatches for EnrollCommand
impl FromArgMatches for EnrollCommand
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 EnrollCommand
impl Subcommand for EnrollCommand
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 subcommand