networking

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

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