github.com/bananabytelabs/wazero@v0.0.0-20240105073314-54b22a776da8/experimental/sysfs/config.go (about) 1 package sysfs 2 3 import ( 4 "github.com/bananabytelabs/wazero" 5 experimentalsys "github.com/bananabytelabs/wazero/experimental/sys" 6 ) 7 8 // FSConfig extends wazero.FSConfig, allowing access to the experimental 9 // sys.FS until it is moved to the "sys" package. 10 type FSConfig interface { 11 // WithSysFSMount assigns a sys.FS file system for any paths beginning at 12 // `guestPath`. 13 // 14 // This is an alternative to WithFSMount, allowing more features. 15 WithSysFSMount(fs experimentalsys.FS, guestPath string) wazero.FSConfig 16 }