github.com/aporeto-inc/trireme-lib@v10.358.0+incompatible/controller/internal/processmon/processmon_windows.go (about)

     1  // +build windows
     2  
     3  // Package processmon is to manage and monitor remote enforcers.
     4  package processmon
     5  
     6  import (
     7  	"context"
     8  
     9  	"go.aporeto.io/enforcerd/trireme-lib/controller/internal/enforcer/utils/rpcwrapper"
    10  	"go.aporeto.io/enforcerd/trireme-lib/controller/pkg/env"
    11  	"go.aporeto.io/enforcerd/trireme-lib/policy"
    12  )
    13  
    14  type remoteMonitor struct {
    15  }
    16  
    17  // New is a method to create a new remote process monitor.
    18  func New(ctx context.Context, p *env.RemoteParameters, c chan *policy.RuntimeError, r rpcwrapper.RPCClient, numNfqueues int) ProcessManager {
    19  	return &remoteMonitor{}
    20  }
    21  
    22  // LaunchRemoteEnforcer for Windows: does nothing right now
    23  func (p *remoteMonitor) LaunchRemoteEnforcer(
    24  	contextID string,
    25  	refPid int,
    26  	refNSPath string,
    27  	arg string,
    28  	statsServerSecret string,
    29  	procMountPoint string,
    30  	enforcerType policy.EnforcerType,
    31  ) (bool, error) {
    32  	return true, nil
    33  }
    34  
    35  // KillRemoteEnforcer for Windows: does nothing right now
    36  func (p *remoteMonitor) KillRemoteEnforcer(contextID string, force bool) error {
    37  	return nil
    38  }