Documentation ¶
Overview ¶
networking is the package that implements small functionality shared between state0 and stage1.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForwardedPort ¶
type ForwardedPort struct { PodPort types.Port HostPort types.ExposedPort }
ForwardedPort describes a port that will be forwarded (mapped) from the host to the pod
func ForwardedPorts ¶
func ForwardedPorts(manifest *schema.PodManifest) ([]ForwardedPort, error)
ForwardedPorts matches up ExposedPorts (host ports) with Ports on the app side. By default, it tries to match up by name - apps expose ports, and the podspec maps them. The podspec can also map from host to pod, without a corresponding app (which is needed for CRI) This will error if: - a name is ambiguous - the same port:proto combination is forwarded
Click to show internal directories.
Click to hide internal directories.