Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindImposterProcesses ¶
func FindImposterProcesses(matcher ProcessMatcher) ([]engine.ManagedMock, error)
FindImposterProcesses finds all imposter processes matching the given matcher
func StopManagedProcesses ¶
func StopManagedProcesses(matcher ProcessMatcher) (int, error)
StopManagedProcesses stops all processes matching the given matcher
Types ¶
type ProcessMatcher ¶
type ProcessMatcher struct {
// ProcessName is the name of the process to match (e.g., "java" or "imposter")
ProcessName string
// CommandPattern is a regex pattern to match against command line arguments
CommandPattern string
// GetPort is a function that determines the port from command line arguments
GetPort func(cmdline []string, env []string) int
}
ProcessMatcher defines how to identify a specific type of imposter process
Click to show internal directories.
Click to hide internal directories.