Modules§
- commands
- Type implementations for commands issued to compensate for state changes
- config
- consumers
- Contains implementions of durable consumers of events that automatically take a message from a consumer and parse it to concrete types for consumption in a scheduler
- events
- nats_
utils - Helper utilities for interacting with NATS
- publisher
- A module that defines a generic publisher trait and several common publishers that can be passed into various structs in wadm. Often times this is used for testing, but it also allows for flexibility for others who may want to publish to other sources
- scaler
- server
- storage
- workers
- Various
Worker
implementations for reconciling and handling events and commands. These are essentially the default things that drive work forward in wadm
Enums§
Constants§
- APP_
SPEC_ ANNOTATION - An annotation that denotes which model a resource belongs to
- DEFAULT_
COMMANDS_ TOPIC - Default topic to listen to for all commands
- DEFAULT_
COMMAND_ STREAM_ NAME - Default stream name for wadm commands
- DEFAULT_
EVENTS_ TOPIC - Default topic to listen to for all lattice events
- DEFAULT_
EXPIRY_ TIME - Default amount of time events should stay in the stream. This is the 2x heartbeat interval, plus some wiggle room. Exported to make setting defaults easy
- DEFAULT_
LINK_ NAME - The default link name. In the future, this will likely be pulled in from another crate
- DEFAULT_
MULTITENANT_ EVENTS_ TOPIC - Default topic to listen to for all lattice events in a multitenant deployment
- DEFAULT_
NOTIFY_ STREAM_ NAME - Default stream name for wadm notifications
- DEFAULT_
STATUS_ STREAM_ NAME - Default stream name for wadm status
- DEFAULT_
STATUS_ TOPIC - Default topic to listen to for all status updates. wadm.status.<lattice_id>.<manifest_name>
- DEFAULT_
WADM_ EVENTS_ TOPIC - Default topic to listen to for all wadm event updates
- DEFAULT_
WADM_ EVENT_ CONSUMER_ STREAM_ NAME - Default stream name for wadm event consumer
- DEFAULT_
WADM_ EVENT_ CONSUMER_ TOPIC - Default internal wadm event consumer listen topic for the merged wadm and wasmbus events stream.
- DEFAULT_
WADM_ EVENT_ STREAM_ NAME - Default stream name for wadm events
- DEFAULT_
WASMBUS_ EVENT_ STREAM_ NAME - Default stream name for wasmbus events
- MANAGED_
BY_ ANNOTATION - Managed by annotation used for labeling things properly in wadm
- MANAGED_
BY_ IDENTIFIER - Identifier for managed by annotation. This is the value
MANAGED_BY_ANNOTATION
is set to - SCALER_
KEY - An annotation that denotes which scaler is managing a resource
Functions§
- start_
wadm - Start wadm with the provided WadmConfig, returning JoinSet with two tasks: