mirror of https://github.com/dapr/docs.git
add guestConfig metadata doc for wasm middleware
Signed-off-by: zhangchao <zchao9100@gmail.com>
This commit is contained in:
parent
dfc3a2c657
commit
ff722225b5
|
|
@ -35,6 +35,8 @@ spec:
|
||||||
metadata:
|
metadata:
|
||||||
- name: url
|
- name: url
|
||||||
value: "file://router.wasm"
|
value: "file://router.wasm"
|
||||||
|
- guestConfig
|
||||||
|
value: {"environment":"production"}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Spec metadata fields
|
## Spec metadata fields
|
||||||
|
|
@ -45,6 +47,7 @@ How to compile this is described later.
|
||||||
| Field | Details | Required | Example |
|
| Field | Details | Required | Example |
|
||||||
|-------|----------------------------------------------------------------|----------|----------------|
|
|-------|----------------------------------------------------------------|----------|----------------|
|
||||||
| url | The URL of the resource including the Wasm binary to instantiate. The supported schemes include `file://`. The path of a `file://` URL is relative to the Dapr process unless it begins with `/`. | true | `file://hello.wasm` |
|
| url | The URL of the resource including the Wasm binary to instantiate. The supported schemes include `file://`. The path of a `file://` URL is relative to the Dapr process unless it begins with `/`. | true | `file://hello.wasm` |
|
||||||
|
| guestConfig | The configuration for the wasm function, its format depends on how the wasm function parses it. | false | `enviroment=production`,`{"environment":"production"}` |
|
||||||
|
|
||||||
## Dapr configuration
|
## Dapr configuration
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue