Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Info ¶
type Info struct {
PID int `json:"pid"`
Name string `json:"name"`
Namespace string `json:"namespace"`
Pod string `json:"pod"`
LocalPort int `json:"local_port"`
RemotePort int `json:"remote_port"`
StartedAt time.Time `json:"started_at"`
}
Info holds metadata about a running port-forward.
func FindByNamespaceAndPod ¶
FindByNamespaceAndPod finds an active port-forward for the given namespace and pod. Returns the info and true if found and running, or nil and false otherwise.
func IsRunning ¶
IsRunning checks if a named port-forward is active. Returns the info and true if running, or nil and false otherwise. Cleans up stale PID files.
Click to show internal directories.
Click to hide internal directories.