Struct wasmer_cli::commands::app::secrets::update::CmdAppSecretsUpdate
source · pub struct CmdAppSecretsUpdate {
pub env: WasmerEnv,
pub quiet: bool,
pub non_interactive: bool,
pub app_dir_path: Option<PathBuf>,
pub app_id: AppIdentFlag,
pub from_file: Option<PathBuf>,
pub redeploy: bool,
pub secret_name: Option<String>,
pub secret_value: Option<String>,
}
Expand description
Update an existing app secret.
Fields§
§env: WasmerEnv
§quiet: bool
Don’t print any message.
non_interactive: bool
Do not prompt for user input.
app_dir_path: Option<PathBuf>
The path to the directory where the config file for the application will be written to.
app_id: AppIdentFlag
§from_file: Option<PathBuf>
Path to a file with secrets stored in JSON format to update secrets from.
redeploy: bool
Whether or not to redeploy the app after creating the secrets.
secret_name: Option<String>
The name of the secret to update.
secret_value: Option<String>
The value of the secret to update.
Implementations§
source§impl CmdAppSecretsUpdate
impl CmdAppSecretsUpdate
fn get_secret_name(&self) -> Result<String>
fn get_secret_value(&self) -> Result<String>
sourceasync fn filter_secrets(
&self,
client: &WasmerClient,
app_id: &str,
secrets: Vec<Secret>,
) -> Result<Vec<Secret>>
async fn filter_secrets( &self, client: &WasmerClient, app_id: &str, secrets: Vec<Secret>, ) -> Result<Vec<Secret>>
Given a list of secrets, checks if the given secrets already exist for the given app and returns a list of secrets that must be upserted.
async fn update( &self, client: &WasmerClient, app_id: &str, secrets: Vec<Secret>, ) -> Result<(), Error>
async fn update_from_file( &self, client: &WasmerClient, path: &Path, app_id: &str, ) -> Result<(), Error>
Trait Implementations§
source§impl Args for CmdAppSecretsUpdate
impl Args for CmdAppSecretsUpdate
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentssource§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
source§impl CommandFactory for CmdAppSecretsUpdate
impl CommandFactory for CmdAppSecretsUpdate
source§impl Debug for CmdAppSecretsUpdate
impl Debug for CmdAppSecretsUpdate
source§impl FromArgMatches for CmdAppSecretsUpdate
impl FromArgMatches for CmdAppSecretsUpdate
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§impl Parser for CmdAppSecretsUpdate
impl Parser for CmdAppSecretsUpdate
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Update from iterator, return Err on error.
Auto Trait Implementations§
impl Freeze for CmdAppSecretsUpdate
impl RefUnwindSafe for CmdAppSecretsUpdate
impl Send for CmdAppSecretsUpdate
impl Sync for CmdAppSecretsUpdate
impl Unpin for CmdAppSecretsUpdate
impl UnwindSafe for CmdAppSecretsUpdate
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Pointee for T
impl<T> Pointee for T
§impl<T> Upcastable for T
impl<T> Upcastable for T
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref
§fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
upcast boxed dyn