pub struct CmdAppDeploy {Show 19 fields
pub env: WasmerEnv,
pub fmt: ItemFormatOpts,
pub no_validate: bool,
pub non_interactive: bool,
pub publish_package: bool,
pub dir: Option<PathBuf>,
pub path: Option<PathBuf>,
pub no_wait: bool,
pub no_default: bool,
pub no_persist_id: bool,
pub owner: Option<String>,
pub app_name: Option<String>,
pub bump: bool,
pub quiet: bool,
pub build_remote: bool,
pub template: Option<String>,
pub package: Option<String>,
pub use_local_manifest: bool,
pub ensure_app_config: bool,
}Expand description
Deploy an app to Wasmer Edge.
Fields§
§env: WasmerEnv§fmt: ItemFormatOpts§no_validate: boolSkip local schema validation.
non_interactive: boolDo not prompt for user input.
publish_package: boolAutomatically publish the package referenced by this app.
Only works if the corresponding wasmer.toml is in the same directory.
dir: Option<PathBuf>The path to the directory containing the app.yaml file.
path: Option<PathBuf>The path to the app.yaml file.
no_wait: boolDo not wait for the app to become reachable.
no_default: boolDo not make the new app version the default (active) version. This is useful for testing a deployment first, before moving it to “production”.
no_persist_id: boolDo not persist the app ID under app_id field in app.yaml.
owner: Option<String>Specify the owner (user or namespace) of the app.
If specified via this flag, the owner will be overridden. Otherwise, the app.yaml is
inspected and, if there is no owner field in the spec file, the user will be prompted to
select the correct owner. If no owner is found in non-interactive mode the deployment will
fail.
app_name: Option<String>Specify the name (user or namespace) of the app to be deployed.
If specified via this flag, the app_name will be overridden. Otherwise, the app.yaml is
inspected and, if there is no name field in the spec file, if running interactive the
user will be prompted to insert an app name, otherwise the deployment will fail.
bump: boolWhether or not to automatically bump the package version if publishing.
quiet: boolDon’t print any message.
The only message that will be printed is the one signaling the successfullness of the operation.
build_remote: boolUse Wasmer’s remote autobuild pipeline instead of building locally.
template: Option<String>A reference to the template to use when creating an app to deploy.
It can be either an URL to a github repository - like
https://github.com/wasmer-examples/php-wasmer-starter - or the name of a template that
will be searched for in the selected registry, like astro-starter.
package: Option<String>Name of the package to use when creating an app to deploy.
use_local_manifest: boolWhether or not to search (and use) a local manifest when creating an app to deploy.
ensure_app_config: boolImplementations§
Source§impl CmdAppDeploy
impl CmdAppDeploy
async fn publish( &self, client: &WasmerClient, owner: String, manifest_dir_path: PathBuf, ) -> Result<PackageIdent>
async fn get_owner( &self, client: &WasmerClient, app: &mut Value, maybe_edge_app: Option<&DeployApp>, ) -> Result<String>
async fn create(&self) -> Result<()>
fn resolve_app_paths(&self) -> Result<(PathBuf, PathBuf)>
async fn handle_remote_build(&self, client: &WasmerClient) -> Result<()>
async fn prepare_remote_build_from_file( &self, client: &WasmerClient, app_config_path: &Path, base_dir_path: &Path, ) -> Result<RemoteBuildInput>
async fn prepare_remote_build_without_config( &self, client: &WasmerClient, base_dir_path: &Path, ) -> Result<RemoteBuildInput>
async fn ensure_owner_access( &self, client: &WasmerClient, owner: String, ) -> Result<String>
Trait Implementations§
Source§impl Args for CmdAppDeploy
impl Args for CmdAppDeploy
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
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
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl AsyncCliCommand for CmdAppDeploy
impl AsyncCliCommand for CmdAppDeploy
Source§impl CommandFactory for CmdAppDeploy
impl CommandFactory for CmdAppDeploy
Source§impl Debug for CmdAppDeploy
impl Debug for CmdAppDeploy
Source§impl FromArgMatches for CmdAppDeploy
impl FromArgMatches for CmdAppDeploy
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for CmdAppDeploy
impl Parser for CmdAppDeploy
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for CmdAppDeploy
impl RefUnwindSafe for CmdAppDeploy
impl Send for CmdAppDeploy
impl Sync for CmdAppDeploy
impl Unpin for CmdAppDeploy
impl UnwindSafe for CmdAppDeploy
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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> 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>
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