Closed gaukas closed 1 year ago
Reflecting C-API changes made in https://github.com/bytecodealliance/wasmtime/pull/7001 by adding incomplete implementation for WasiCtx:
WasiCtx
func (store *Store) GetWasiCtx() *WasiCtx
func (c *WasiConfig) PreopenTCPSocket(innerFD uint32, hostPort string) error
type WasiFileAccessMode uint32
type WasiCtx struct
(*WasiCtx).InsertFile(guestFD uint32, file *os.File, accessMode WasiFileAccessMode)
(*WasiCtx).PushFile(file *os.File, accessMode WasiFileAccessMode) (uint32, error)
*: Credit goes to @jmwample.
This pull request depends on the pull request editing the C-API, and has been discussed here: #187
Reflecting C-API changes made in https://github.com/bytecodealliance/wasmtime/pull/7001 by adding incomplete implementation for
WasiCtx
:func (store *Store) GetWasiCtx() *WasiCtx
func (c *WasiConfig) PreopenTCPSocket(innerFD uint32, hostPort string) error
*: not a part ofWasiCtx
, but adding it since it was already there in C-API.type WasiFileAccessMode uint32
*type WasiCtx struct
(*WasiCtx).InsertFile(guestFD uint32, file *os.File, accessMode WasiFileAccessMode)
(*WasiCtx).PushFile(file *os.File, accessMode WasiFileAccessMode) (uint32, error)
*: Credit goes to @jmwample.
This pull request depends on the pull request editing the C-API, and has been discussed here: #187