pub enum SecretCommands {
List,
Set {
key: String,
value: Option<String>,
},
Update {
key: String,
value: Option<String>,
},
Delete {
key: String,
yes: bool,
},
Rotate(RotateArgs),
KeyStatus,
}Expand description
Available secret subcommands.
Variants§
List
List secret keys. Values are never returned by the API.
Set
Create a secret, or replace the value of an existing one.
Fields
Update
Replace the value of an existing secret. Fails if the key is unknown.
Delete
Delete a secret.
Rotate(RotateArgs)
Re-encrypt every stored secret with a key version.
Runs batch by batch until the whole stock is on the target version. Safe to interrupt and rerun: secrets already rotated are skipped.
KeyStatus
Show which encryption key versions are configured and in use.
Trait Implementations§
Source§impl Debug for SecretCommands
impl Debug for SecretCommands
Source§impl FromArgMatches for SecretCommands
impl FromArgMatches for SecretCommands
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 SecretCommands
impl Subcommand for SecretCommands
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 SecretCommands
impl RefUnwindSafe for SecretCommands
impl Send for SecretCommands
impl Sync for SecretCommands
impl Unpin for SecretCommands
impl UnsafeUnpin for SecretCommands
impl UnwindSafe for SecretCommands
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