wash_cli::cmd::up

Struct WasmcloudOpts

source
pub struct WasmcloudOpts {
Show 37 fields pub wasmcloud_version: String, pub lattice: Option<String>, pub host_seed: Option<String>, pub rpc_host: Option<String>, pub rpc_port: Option<u16>, pub rpc_seed: Option<String>, pub rpc_timeout_ms: Option<u64>, pub rpc_jwt: Option<String>, pub rpc_tls: bool, pub rpc_tls_ca_file: Option<PathBuf>, pub rpc_credsfile: Option<PathBuf>, pub ctl_host: Option<String>, pub ctl_port: Option<u16>, pub ctl_seed: Option<String>, pub ctl_jwt: Option<String>, pub ctl_credsfile: Option<PathBuf>, pub ctl_tls: bool, pub ctl_tls_ca_file: Option<PathBuf>, pub cluster_seed: Option<String>, pub cluster_issuers: Option<Vec<String>>, pub provider_delay: u32, pub allow_latest: bool, pub allowed_insecure: Option<Vec<String>>, pub wasmcloud_js_domain: Option<String>, pub config_service_enabled: bool, pub allow_file_load: Option<bool>, pub enable_structured_logging: bool, pub label: Option<Vec<String>>, pub structured_log_level: String, pub enable_ipv6: bool, pub start_only: bool, pub multi_local: bool, pub max_execution_time: u64, pub secrets_topic: Option<String>, pub policy_topic: Option<String>, pub host_log_path: Option<PathBuf>, pub host_path: Option<PathBuf>,
}

Fields§

§wasmcloud_version: String

wasmCloud host version to download, e.g. v0.55.0. See https://github.com/wasmCloud/wasmcloud/releases for releases

§lattice: Option<String>

A unique identifier for a lattice, frequently used within NATS topics to isolate messages among different lattices

§host_seed: Option<String>

The seed key (a printable 256-bit Ed25519 private key) used by this host to generate it’s public key

§rpc_host: Option<String>

An IP address or DNS name to use to connect to NATS for RPC messages, defaults to the value supplied to –nats-host if not supplied

§rpc_port: Option<u16>

A port to use to connect to NATS for RPC messages, defaults to the value supplied to –nats-port if not supplied

§rpc_seed: Option<String>

A seed nkey to use to authenticate to NATS for RPC messages

§rpc_timeout_ms: Option<u64>

Timeout in milliseconds for all RPC calls

§rpc_jwt: Option<String>

A user JWT to use to authenticate to NATS for RPC messages

§rpc_tls: bool

Optional flag to enable host communication with a NATS server over TLS for RPC messages

§rpc_tls_ca_file: Option<PathBuf>

A TLS CA file to use to authenticate to NATS for RPC messages

§rpc_credsfile: Option<PathBuf>

Convenience flag for RPC authentication, internally this parses the JWT and seed from the credsfile

§ctl_host: Option<String>

An IP address or DNS name to use to connect to NATS for Control Interface (CTL) messages, defaults to the value supplied to –nats-host if not supplied

§ctl_port: Option<u16>

A port to use to connect to NATS for CTL messages, defaults to the value supplied to –nats-port if not supplied

§ctl_seed: Option<String>

A seed nkey to use to authenticate to NATS for CTL messages

§ctl_jwt: Option<String>

A user JWT to use to authenticate to NATS for CTL messages

§ctl_credsfile: Option<PathBuf>

Convenience flag for CTL authentication, internally this parses the JWT and seed from the credsfile

§ctl_tls: bool

Optional flag to enable host communication with a NATS server over TLS for CTL messages

§ctl_tls_ca_file: Option<PathBuf>

A TLS CA file to use to authenticate to NATS for CTL messages

§cluster_seed: Option<String>

The seed key (a printable 256-bit Ed25519 private key) used by this host to sign all invocations

§cluster_issuers: Option<Vec<String>>

A comma-delimited list of public keys that can be used as issuers on signed invocations

§provider_delay: u32

Delay, in milliseconds, between requesting a provider shut down and forcibly terminating its process

§allow_latest: bool

Determines whether OCI images tagged latest are allowed to be pulled from OCI registries and started

§allowed_insecure: Option<Vec<String>>

A comma-separated list of OCI hosts to which insecure (non-TLS) connections are allowed

§wasmcloud_js_domain: Option<String>

Jetstream domain name, configures a host to properly connect to a NATS supercluster

§config_service_enabled: bool

Denotes if a wasmCloud host should issue requests to a config service on startup

§allow_file_load: Option<bool>

Denotes if a wasmCloud host should allow starting components from the file system

§enable_structured_logging: bool

Enable JSON structured logging from the wasmCloud host

§label: Option<Vec<String>>

A label to apply to the host, in the form of key=value. This flag can be repeated to supply multiple labels

§structured_log_level: String

Controls the verbosity of JSON structured logs from the wasmCloud host

§enable_ipv6: bool

Enables IPV6 addressing for wasmCloud hosts

§start_only: bool

If enabled, wasmCloud will not be downloaded if it’s not installed

§multi_local: bool

If enabled, allows starting additional wasmCloud hosts on this machine

§max_execution_time: u64

Defines the Max Execution time (in ms) that the host runtime will execute for

§secrets_topic: Option<String>

If provided, enables interfacing with a secrets backend for secret retrieval over the given topic prefix.

§policy_topic: Option<String>

If provided, enables policy checks on start actions and component invocations

§host_log_path: Option<PathBuf>

Path to which to log information from the wasmCloud host

§host_path: Option<PathBuf>

Path to a binary that should be used to start the wasmCloud host

Implementations§

source§

impl WasmcloudOpts

source

pub async fn into_ctl_client( self, auction_timeout_ms: Option<u64>, ) -> Result<CtlClient>

Trait Implementations§

source§

impl Args for WasmcloudOpts

source§

fn group_id() -> Option<Id>

Report the ArgGroup::id for this set of arguments
source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
source§

impl Clone for WasmcloudOpts

source§

fn clone(&self) -> WasmcloudOpts

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl CommandFactory for WasmcloudOpts

source§

fn command<'b>() -> Command

Build a Command that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a Command that can update self. Read more
source§

impl Debug for WasmcloudOpts

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for WasmcloudOpts

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
source§

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>

Assign values from ArgMatches to self.
source§

impl Parser for WasmcloudOpts

source§

fn parse() -> Self

Parse from std::env::args_os(), exit on error.
source§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
source§

fn parse_from<I, T>(itr: I) -> Self
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, exit on error.
source§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
source§

fn update_from<I, T>(&mut self, itr: I)
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, exit on error. Read more
source§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> DynClone for T
where T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FutureExt for T

source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
source§

impl<T> GetSetFdFlags for T

source§

fn get_fd_flags(&self) -> Result<FdFlags, Error>
where T: AsFilelike,

Query the “status” flags for the self file descriptor.
source§

fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>
where T: AsFilelike,

Create a new SetFdFlags value for use with set_fd_flags. Read more
source§

fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>
where T: AsFilelike,

Set the “status” flags for the self file descriptor. Read more
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
source§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more