Module nats

Module nats 

Source
Expand description

NATS implementations of crate::policy::PolicyManager, crate::secrets::SecretsManager, and crate::store::StoreManager traits for the wasmCloud host. NATS implementations of wasmCloud crate::wasmbus::Host extension traits

Modules§

builder
Helper module for building a wasmCloud host with NATS as the primary transport. An opinionated crate::wasmbus::HostBuilder that uses NATS as the primary transport.
ctl
NATS implementation of the wasmCloud control interface The NATS implementation of the control interface.
event
NATS implementation of the wasmCloud crate::event::EventPublisher extension trait, sending events to the NATS message bus with a CloudEvents payload envelope. NATS implementation of the wasmCloud crate::event::EventPublisher extension trait
policy
NATS implementation of the wasmCloud crate::policy::PolicyManager trait Policy manager implementation that uses NATS to send policy requests to a policy server.
provider
NATS implementation of the wasmCloud crate::wasmbus::providers::ProviderManager extension trait which sends provider commands over the NATS message bus.
secrets
NATS implementation of the crate::secrets::SecretsManager extension trait for fetching encrypted secrets from a secret store. Module with structs for use in managing and accessing secrets in a wasmCloud lattice
store
NATS implementation of the wasmCloud crate::store::StoreManager extension trait using JetStream as a backing store. Implementation of the crate::config::ConfigManager and crate::store::StoreManager traits for NATS JetStream KV Store.

Functions§

connect_nats
Given the NATS address, authentication jwt, seed, tls requirement and optional request timeout, attempt to establish connection.