github.com/crowdsecurity/crowdsec@v1.6.1/pkg/csplugin/utils_js.go (about)

     1  package csplugin
     2  
     3  import "os/exec"
     4  
     5  //All functions are empty, just to make the code compile when targeting js/wasm
     6  
     7  func (pb *PluginBroker) CreateCmd(binaryPath string) (*exec.Cmd, error) {
     8  	return nil, nil
     9  }
    10  
    11  func getPluginTypeAndSubtypeFromPath(path string) (string, string, error) {
    12  	return "", "", nil
    13  }
    14  
    15  func pluginIsValid(path string) error {
    16  	return nil
    17  }