wasmcloud/cmd/internal/topic.go

23 lines
686 B
Go

package internal
import "github.com/rogpeppe/go-internal/txtar"
// Topic name for wasmcloud -> executor communication
const TopicName = "wasmcloud-to-executor-09d7e475-71ac-4bdd-be37-050af7a81c58"
type ExecRequest struct {
WASMCID string `json:"wasmcid"`
Name string `json:"name"`
Data []byte `json:"data"`
ABI ABI `json:"abi"`
Env map[string]string `json:"env"`
UUID string `json:"uuid"`
}
type ExecResponse struct {
WASMCID string `json:"wasmcid"`
LogBundleCID string `json:"log_bundle_cid"`
Logs txtar.Archive `json:"logs"`
UUID string `json:"uuid"`
}