Forward module
Source: modules/forward/.
At a glance
Section titled “At a glance”| CLI | shc forward |
| Subcommands | 0 |
| HTTP endpoints | see the route reference |
| Events emitted | — |
| Error codes | see the error code reference |
| Service classes | ForwardService |
| Cross-module deps | app, node |
Source layout
Section titled “Source layout”modules/forward/├── command.go├── parser.go├── service.go├── types.go└── commands/CLI entry points
Section titled “CLI entry points”shc forward— forward local ports to stack_name services
Responsibilities
Section titled “Responsibilities”The forward module implements shc forward — an SSH-style
port-forward that tunnels a local port through the SHC daemon to a
specific service inside a running stack, on the node that owns the
stack. It is the operator’s equivalent of kubectl port-forward and
is used for debugging and one-off access to services that aren’t
exposed through ingress.
ForwardService handles the bidirectional relay. There is no
persistent state and no HTTP endpoint; the transport is internal.
shc@docs:~$