process

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listening

func Listening(ctx context.Context, exec Exec, port int) (bool, error)

Listening reports whether something appears to listen on the given TCP port inside the target network namespace (best-effort via ss/netstat/nc).

func Trim

func Trim(s string) string

Trim for tests / callers that want clean details.

Types

type Exec

type Exec func(ctx context.Context, cmd []string) (output string, exitCode int, err error)

Exec runs a command in the probe context.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL