Skip to main content

UpdateAction

Enum UpdateAction 

Source
pub enum UpdateAction {
Show 14 variants Serve { store: PathBuf, host: String, port: u16, proxy_base: Option<String>, heartbeat_ms: u64, poll_ms: u64, once: bool, plan: bool, }, Stage { store: PathBuf, project: String, channel: String, stage_id: String, manifest: PathBuf, blobs_dir: PathBuf, }, Publish { store: PathBuf, project: String, channel: String, stage_id: String, signing_key: Option<String>, signing_key_env: String, }, Rollback { store: PathBuf, project: String, channel: String, to_release: u64, signing_key: Option<String>, signing_key_env: String, }, Status { store: PathBuf, project: Option<String>, channel: Option<String>, }, Push { store: PathBuf, project: String, channel: String, route: Option<String>, slot: Option<String>, file: Option<PathBuf>, title: Option<String>, body: Option<String>, wasm_widget: bool, accent_hex: Option<String>, signing_key: Option<String>, signing_key_env: String, }, Watch { store: PathBuf, project: String, channel: String, route: Option<String>, slot: Option<String>, file: PathBuf, poll_ms: u64, once: bool, signing_key: Option<String>, signing_key_env: String, }, Init { store: PathBuf, project: String, channel: String, signing_key: Option<String>, json: bool, }, Keygen { bytes: usize, json: bool, }, Build {
Show 13 fields package: Option<String>, path: Option<PathBuf>, out: Option<PathBuf>, push: bool, store: PathBuf, project: String, channel: String, route: Option<String>, slot: Option<String>, signing_key: Option<String>, signing_key_env: String, release: bool, json: bool,
}, Dev {
Show 15 fields store: PathBuf, host: String, port: u16, proxy_base: Option<String>, project: String, channel: String, route: Option<String>, slot: Option<String>, file: Option<PathBuf>, poll_ms: u64, heartbeat_ms: u64, signing_key: Option<String>, signing_key_env: String, once: bool, json: bool,
}, Verify { store: PathBuf, project: String, channel: String, release: Option<u64>, signing_key: Option<String>, signing_key_env: String, json: bool, }, Diff { store: PathBuf, project: String, channel: String, from: u64, to: u64, json: bool, }, Gc { store: PathBuf, keep: usize, dry_run: bool, json: bool, },
}
Expand description

Subcommands under euv update for operating the Hyperlane HTTP + SSE dynamic update server and local store.

Variants§

§

Serve

Starts the read-only Hyperlane HTTP + SSE dynamic update server backed by the local store directory.

Fields

§store: PathBuf

Local update store root directory (staging/, blobs/, releases/, channels/, state/).

§host: String

Host bind address.

§port: u16

TCP listen port (0 selects an ephemeral port).

§proxy_base: Option<String>

Optional external reverse-proxy base URL (e.g. https://ota.example.com/euv).

§heartbeat_ms: u64

SSE keep-alive heartbeat interval in milliseconds.

§poll_ms: u64

Background channel pointer watcher polling interval in milliseconds.

§once: bool

Validate store layout and server bind readiness then exit immediately.

§plan: bool

Print the structured server configuration without binding sockets.

§

Stage

Stages and SHA-256-verifies a release manifest and its blobs into staging/<stage_id>/.

Fields

§store: PathBuf

Local update store root directory.

§project: String

Logical project identifier.

§channel: String

Release channel name (e.g. prod).

§stage_id: String

Unique stage identifier name.

§manifest: PathBuf

Path to the draft JSON ReleaseManifest file.

§blobs_dir: PathBuf

Directory containing built artifact blobs referenced by manifest.

§

Publish

Atomically signs and publishes a staged release with a strictly monotonic sequence number.

Fields

§store: PathBuf

Local update store root directory.

§project: String

Logical project identifier.

§channel: String

Release channel name.

§stage_id: String

Previously staged directory name under staging/.

§signing_key: Option<String>

Offline HMAC-SHA256 signing secret (or provide --signing-key-env).

§signing_key_env: String

Environment variable name holding the offline signing secret.

§

Rollback

Signs a NEW monotonic release pointing back to a historical release’s verified blobs (never replaying old manifests).

Fields

§store: PathBuf

Local update store root directory.

§project: String

Logical project identifier.

§channel: String

Release channel name.

§to_release: u64

Historical release sequence whose verified artifacts should be restored.

§signing_key: Option<String>

Offline HMAC-SHA256 signing secret (or provide --signing-key-env).

§signing_key_env: String

Environment variable name holding the offline signing secret.

§

Status

Inspects active channel pointers, release counts, and content-addressed blob inventory in a local update store.

Fields

§store: PathBuf

Local update store root directory.

§project: Option<String>

Optional project filter.

§channel: Option<String>

Optional channel filter.

§

Push

Builds, verifies, signs, and atomically publishes a live hot-update release from a .json UI spec, .wasm binary, or inline --title in one command.

Fields

§store: PathBuf

Local update store root directory.

§project: String

Logical project identifier.

§channel: String

Release channel name.

§route: Option<String>

Optional target route path to update (defaults to "/dynamic-panel" when neither --route nor --slot is specified).

§slot: Option<String>

Optional component slot identifier to update (defaults to "promo_banner" when neither --route nor --slot is specified).

§file: Option<PathBuf>

Path to a JSON DynamicNodeSpec or compiled .wasm artifact file.

§title: Option<String>

Optional inline card title generating a ready-to-push declarative or WASM update.

§body: Option<String>

Optional body copy paired with --title for quick live OTA updates.

§wasm_widget: bool

Generate a genuine .wasm module binary when using --title instead of declarative JSON.

§accent_hex: Option<String>

Optional RGB hex accent color (e.g. 0x16A34A or 16A34A) when using --title.

§signing_key: Option<String>

Offline HMAC-SHA256 signing secret (or provide --signing-key-env).

§signing_key_env: String

Environment variable name holding the offline signing secret.

§

Watch

Watches a .json UI spec or .wasm artifact file and automatically pushes signed live hot-update releases whenever it changes.

Fields

§store: PathBuf

Local update store root directory.

§project: String

Logical project identifier.

§channel: String

Release channel name.

§route: Option<String>

Optional target route path to update.

§slot: Option<String>

Optional component slot identifier to update.

§file: PathBuf

Watched .json UI spec or .wasm binary file path.

§poll_ms: u64

File polling interval in milliseconds.

§once: bool

Perform a single verified push then exit immediately.

§signing_key: Option<String>

Offline HMAC-SHA256 signing secret (or provide --signing-key-env).

§signing_key_env: String

Environment variable name holding the offline signing secret.

§

Init

Initializes an atomic local OTA update store layout and optional project/channel config.

Fields

§store: PathBuf

Local update store root directory.

§project: String

Default logical project identifier.

§channel: String

Default release channel name.

§signing_key: Option<String>

Optional explicit signing key (otherwise generates a fresh random hex secret).

§json: bool

Emit machine-readable JSON output.

§

Keygen

Generates a cryptographically strong HMAC-SHA256 signing key hex string for OTA releases.

Fields

§bytes: usize

Number of random entropy bytes to generate (default 32 bytes = 64 hex chars).

§json: bool

Emit machine-readable JSON output.

§

Build

Compiles a Rust dynamic widget crate to wasm32-unknown-unknown, validates ABI exports, and optionally pushes a live OTA release.

Fields

§package: Option<String>

Optional Cargo package name to build.

§path: Option<PathBuf>

Optional path to the widget crate directory.

§out: Option<PathBuf>

Destination file path for the verified .wasm widget binary.

§push: bool

Immediately sign and publish the compiled .wasm widget to --store.

§store: PathBuf

Local update store root directory when --push is set.

§project: String

Logical project identifier when --push is set.

§channel: String

Release channel name when --push is set.

§route: Option<String>

Optional target route path when --push is set.

§slot: Option<String>

Optional target slot identifier when --push is set.

§signing_key: Option<String>

Offline HMAC-SHA256 signing secret (or provide --signing-key-env).

§signing_key_env: String

Environment variable name holding the offline signing secret.

§release: bool

Compile the dynamic widget crate with --release.

§json: bool

Emit machine-readable JSON output.

§

Dev

Runs a unified single-command Hyperlane OTA server + live file watcher printing localhost and LAN URLs.

Fields

§store: PathBuf

Local update store root directory.

§host: String

Host bind address.

§port: u16

TCP listen port (0 selects an ephemeral port).

§proxy_base: Option<String>

Optional external reverse-proxy base URL.

§project: String

Logical project identifier.

§channel: String

Release channel name.

§route: Option<String>

Optional target route path.

§slot: Option<String>

Optional component slot identifier.

§file: Option<PathBuf>

Optional .json spec or .wasm artifact file watched for automatic live pushes.

§poll_ms: u64

Watcher polling interval in milliseconds.

§heartbeat_ms: u64

SSE keep-alive heartbeat interval in milliseconds.

§signing_key: Option<String>

Offline HMAC-SHA256 signing secret (or provide --signing-key-env).

§signing_key_env: String

Environment variable name holding the offline signing secret.

§once: bool

Validate startup and optional initial push then exit immediately.

§json: bool

Emit machine-readable JSON output.

§

Verify

Audits offline HMAC-SHA256 signatures, channel pointers, and SHA-256 integrity of every referenced blob in a store.

Fields

§store: PathBuf

Local update store root directory.

§project: String

Logical project identifier.

§channel: String

Release channel name.

§release: Option<u64>

Optional specific release sequence to verify (defaults to active release).

§signing_key: Option<String>

Offline HMAC-SHA256 verification secret (or provide --signing-key-env).

§signing_key_env: String

Environment variable name holding the verification secret.

§json: bool

Emit machine-readable JSON output.

§

Diff

Compares two release sequences showing route, track, and content-addressed blob deltas.

Fields

§store: PathBuf

Local update store root directory.

§project: String

Logical project identifier.

§channel: String

Release channel name.

§from: u64

Baseline historical release sequence number.

§to: u64

Target release sequence number to compare against --from.

§json: bool

Emit machine-readable JSON output.

§

Gc

Garbage-collects unreferenced blobs and stale staging directories while preserving active and recent releases.

Fields

§store: PathBuf

Local update store root directory.

§keep: usize

Number of most recent releases per channel to preserve.

§dry_run: bool

Report reclaimable files and bytes without deleting anything.

§json: bool

Emit machine-readable JSON output.

Trait Implementations§

Source§

impl Clone for UpdateAction

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for UpdateAction

Source§

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

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

impl Eq for UpdateAction

Source§

impl FromArgMatches for UpdateAction

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<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl PartialEq for UpdateAction

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for UpdateAction

Source§

impl Subcommand for UpdateAction

Source§

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

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

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

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

§

impl Forget for UpdateAction

§

impl Freeze for UpdateAction
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze,

§

impl Move for UpdateAction

§

impl RefUnwindSafe for UpdateAction

§

impl Send for UpdateAction
where RawVecInner: Send,

§

impl Sync for UpdateAction
where RawVecInner: Sync,

§

impl Unpin for UpdateAction
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for UpdateAction

§

impl UnwindSafe for UpdateAction
where RawVecInner: UnwindSafe,

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> AnySend for T
where T: Any + Send,

Source§

impl<T> AnySendClone for T
where T: Any + Send + Clone,

Source§

impl<T> AnySendSync for T
where T: Any + Send + Sync,

Source§

impl<T> AnySendSyncClone for T
where T: Any + Send + Sync + Clone,

Source§

impl<T> AnySync for T
where T: Any + Sync,

Source§

impl<T> AnySyncClone for T
where T: Any + Sync + Clone,

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, dest: *mut u8)

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

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<'a, T> FromIn<'a, T> for T

Source§

fn from_in(t: T, _: &'a Allocator) -> T

Converts to this type from the input type within the given allocator.
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<'a, T, U> IntoIn<'a, U> for T
where U: FromIn<'a, T>,

Source§

fn into_in(self, allocator: &'a Allocator) -> U

Converts this type into the (usually inferred) input type within the given allocator.
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 = !

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

fn try_from(value: U) -> Result<T, !>

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