pub enum TeamAction {
Init {
identity: String,
},
AddMember {
public_key: String,
identity: String,
},
RemoveMember {
public_key: String,
identity: String,
},
Members,
Keygen {
name: Option<String>,
email: Option<String>,
},
ShowKey {
identity: Option<String>,
},
SyncKeys {
identity: String,
keys_file: Option<String>,
},
}Variants§
Init
Create a new team vault encrypted to your age identity.
AddMember
Add a team member by their age public key.
Fields
RemoveMember
Remove a team member and re-encrypt all secrets with a new key.
Fields
Members
List current team members (public keys).
Keygen
Generate a new age identity (keypair) and print the JSON block to add
to .tsafe/team-keys.json via a PR.
The private key is saved to ~/.age/tsafe-<profile>.txt.
The public key is printed as a ready-to-paste JSON entry.
Fields
ShowKey
Print your age public key from an existing identity file.
SyncKeys
Reconcile vault recipients with .tsafe/team-keys.json.
Adds any new members found in the keys file. Removes members no longer listed. Re-keys the vault if the member list changed.
Trait Implementations§
Source§impl FromArgMatches for TeamAction
impl FromArgMatches for TeamAction
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>
Assign values from
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>
Assign values from
ArgMatches to self.Source§impl Subcommand for TeamAction
impl Subcommand for TeamAction
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
Append to
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
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for TeamAction
impl RefUnwindSafe for TeamAction
impl Send for TeamAction
impl Sync for TeamAction
impl Unpin for TeamAction
impl UnsafeUnpin for TeamAction
impl UnwindSafe for TeamAction
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
Mutably borrows from an owned value. Read more