github.com/tetratelabs/wazero@v1.7.3-0.20240513003603-48f702e154b5/experimental/sysfs/config.go (about)

     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  }