You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.
func (ctx context) OnVMStart(vmConfigurationSize int) bool {
data, err := proxywasm.HostCallGetVMConfiguration(vmConfigurationSize)
if err != nil {
proxywasm.LogCritical("error reading vm configuration", err.Error())
}
var c map[string]interface{}
if err := vjson.Unmarshal(data, &c); err != nil {
panic(err)
}
proxywasm.LogInfo("vm config: \n", c["name"].(string))
return true
}
verified that it works with WASI target:
[2020-09-14 17:44:43.371][1014652][info][wasm] [external/envoy/source/extensions/common/wasm/context.cc:997] wasm log my_root_id: vm config:
vm configuration
somewhat related to #12
The text was updated successfully, but these errors were encountered: