github.com/wasilibs/wazerox@v0.0.0-20240124024944-4923be63ab5f/experimental/sysfs/config.go (about)

     1  package sysfs
     2  
     3  import (
     4  	wazero "github.com/wasilibs/wazerox"
     5  	experimentalsys "github.com/wasilibs/wazerox/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  }