-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
Signed-off-by: Lucas Fontes <[email protected]>
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// This file exists for testing this package without WebAssembly, | ||
// allowing empty function bodies with a //go:wasmimport directive. | ||
// See https://pkg.go.dev/cmd/compile for more information. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// This file exists for testing this package without WebAssembly, | ||
// allowing empty function bodies with a //go:wasmimport directive. | ||
// See https://pkg.go.dev/cmd/compile for more information. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// This file exists for testing this package without WebAssembly, | ||
// allowing empty function bodies with a //go:wasmimport directive. | ||
// See https://pkg.go.dev/cmd/compile for more information. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
http = "https://github.com/WebAssembly/wasi-http/archive/v0.2.0.tar.gz" | ||
config = "https://github.com/WebAssembly/wasi-runtime-config/archive/main.tar.gz" | ||
logging = "https://github.com/WebAssembly/wasi-logging/archive/main.tar.gz" | ||
wasmcloud = "https://github.com/wasmCloud/wasmCloud/archive/refs/tags/v1.2.0.tar.gz" | ||
lattice = "https://github.com/wasmCloud/wasmCloud/archive/refs/tags/v1.2.0.tar.gz" | ||
messaging = "https://github.com/wasmCloud/messaging/archive/v0.2.0.tar.gz" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
interface runtime { | ||
/// An error type that encapsulates the different errors that can occur fetching config | ||
variant config-error { | ||
/// This indicates an error from an "upstream" config source. | ||
/// As this could be almost _anything_ (such as Vault, Kubernetes ConfigMaps, KeyValue buckets, etc), | ||
/// the error message is a string. | ||
upstream(string), | ||
/// This indicates an error from an I/O operation. | ||
/// As this could be almost _anything_ (such as a file read, network connection, etc), | ||
/// the error message is a string. | ||
/// Depending on how this ends up being consumed, | ||
/// we may consider moving this to use the `wasi:io/error` type instead. | ||
/// For simplicity right now in supporting multiple implementations, it is being left as a string. | ||
io(string), | ||
} | ||
|
||
/// Gets a single opaque config value set at the given key if it exists | ||
get: func( | ||
/// A string key to fetch | ||
key: string | ||
) -> result<option<string>, config-error>; | ||
|
||
/// Gets a list of all set config data | ||
get-all: func() -> result<list<tuple<string, string>>, config-error>; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package wasi:config@0.2.0-draft; | ||
|
||
world imports { | ||
/// The runtime interface for config | ||
import runtime; | ||
} |