networking

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2018 License: Apache-2.0 Imports: 4 Imported by: 1 module, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Jump to

Keyboard shortcuts

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