package networking
import "github.com/coreos/rkt/common/networking"
networking is the package that implements small functionality shared between state0 and stage1.
Index ¶
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
Source Files ¶
- Version
- v1.30.0 (latest)
- Published
- Apr 13, 2018
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 5 days ago –
Tools for package owners.