network

package
v1.5.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

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