NATS Subjects
This page provides an overview of NATS subjects used by wasmCloud.
wRPC
NATS Subjects used for wRPC communication adopt the following subject pattern:
plaintext
{lattice}.{component_id}.wrpc.{protocol_version}.{namespace}:{package}/{interface}@{version}.{function}
See RPC page for more details.
Control Interface
The complete Control Interface documentation can be found here, and follows the following pattern:
plaintext
wasmbus.ctl.{version}.{lattice}.{noun}.{verb}.{optional_name}
Subject | Group | Details |
---|---|---|
wasmbus.ctl.v1.{lattice}.provider.auction | Auctions | Provider |
wasmbus.ctl.v1.{lattice}.component.auction | Auctions | Component |
wasmbus.ctl.v1.{lattice}.component.scale.{host-id} | Commands | Scale component |
wasmbus.ctl.v1.{lattice}.component.update.{host-id} | Commands | Update component |
wasmbus.ctl.v1.{lattice}.provider.start.{host-id} | Commands | Start provider |
wasmbus.ctl.v1.{lattice}.provider.stop.{host-id} | Commands | Stop provider |
wasmbus.ctl.v1.{lattice}.host.stop.{host-id} | Commands | Stop host |
wasmbus.ctl.v1.{lattice}.config.put.{config-name} | Config | Put config |
wasmbus.ctl.v1.{lattice}.config.del.{config-name} | Config | Delete config |
wasmbus.ctl.v1.{lattice}.config.get.{config-name} | Config | Get config |
wasmbus.ctl.v1.{lattice}.label.put.{host-id} | Labels | Put label |
wasmbus.ctl.v1.{lattice}.label.del.{host-id} | Labels | Delete label |
wasmbus.ctl.v1.{lattice}.link.get | Queries | Links |
wasmbus.ctl.v1.{lattice}.claims.get | Queries | Claims |
wasmbus.ctl.v1.{lattice}.host.get.{host-id} | Queries | Host inventory |
wasmbus.ctl.v1.{lattice}.host.ping | Queries | Ping hosts |
wasmbus.ctl.v1.{lattice}.link.put | Link operations | Put link |
wasmbus.ctl.v1.{lattice}.link.del | Link operations | Delete link |
wadm API
The wadm API uses the "model" term for brevity; each model is an individual application manifest. The complete wadm API documentation can be found here takes requests in the following format:
plaintext
wadm.api.{lattice}.{category}.{operation}.{object}
Subject | Group | Details |
---|---|---|
wadm.api.{lattice}.model.put | Models | Store model |
wadm.api.{lattice}.model.list | Models | List models |
wadm.api.{lattice}.model.get.{name} | Models | Get model |
wadm.api.{lattice}.model.versions.{name} | Models | Version history |
wadm.api.{lattice}.model.del.{name} | Models | Delete model |
wadm.api.{lattice}.model.deploy.{name} | Deployments | Deploy |
wadm.api.{lattice}.model.undeploy.{name} | Deployments | Undeploy |
wadm.api.{lattice}.model.status.{name} | Deployments | Deployment status |