network

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: Apache-2.0 Imports: 17 Imported by: 0 modules, 0 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

Index

Constants

This section is empty.

Variables

View Source
var (
	ContainerByPort map[string]string // port:containerID

)

Functions

func ContainerWithPort

func ContainerWithPort(hostPort string) (string, bool)

func DirectPortInformation

func DirectPortInformation(t *models.ContainerInfo) []types.Port

func Init added in v1.5.0

func Init()

func MapPorts

func MapPorts(vc *viccontainer.VicContainer, endpoint *models.EndpointConfig, containerID string) error

MapPorts maps ports defined in bridge endpoint for containerID

func PortForwardingInformation

func PortForwardingInformation(vc *viccontainer.VicContainer, ips []string) []types.Port

returns port bindings as a slice of Docker Ports for return to the client returns empty slice on error func PortForwardingInformation(t *models.ContainerInfo, ips []string) []types.Port {

func PortMapFromContainer

func PortMapFromContainer(vc *viccontainer.VicContainer, t *models.ContainerInfo) nat.PortMap

portMapFromContainer constructs a docker portmap from the container's info as returned by the portlayer and adds nil entries for any exposed ports that are unmapped

func PublicIPv4Addrs

func PublicIPv4Addrs() ([]string, error)

func UnmapPorts

func UnmapPorts(id string, vc *viccontainer.VicContainer) error

UnmapPorts unmaps ports defined in hostconfig if it's mapped for this container

Types

This section is empty.

Jump to

Keyboard shortcuts

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