...

Source file src/github.com/tetratelabs/wazero/experimental/sysfs/config.go

Documentation: github.com/tetratelabs/wazero/experimental/sysfs

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

View as plain text