Versions in this module Expand all Collapse all v1 v1.2.0 Mar 24, 2026 v1.1.0 Mar 24, 2026 Changes in this version + const DefaultTimeout + type CommandExecutor interface + BinaryPath func(name string) (string, error) + Execute func(ctx context.Context, binary string, args []string) (stdout []byte, stderr []byte, err error) + type MockCall struct + Args []string + Binary string + type MockExecutor struct + Calls []MockCall + DefaultResponse *MockResponse + Responses map[string]MockResponse + func NewMockExecutor() *MockExecutor + func (m *MockExecutor) BinaryPath(name string) (string, error) + func (m *MockExecutor) Execute(_ context.Context, binary string, args []string) ([]byte, []byte, error) + type MockResponse struct + Err error + Stderr []byte + Stdout []byte + type RealExecutor struct + func NewRealExecutor(logger *slog.Logger, wiresharkDir string) *RealExecutor + func (e *RealExecutor) BinaryPath(name string) (string, error) + func (e *RealExecutor) Execute(ctx context.Context, binary string, args []string) ([]byte, []byte, error)