Documentation ¶
Index ¶
- Variables
- func ContainerWithPort(hostPort string) (string, bool)
- func DirectPortInformation(t *models.ContainerInfo) []types.Port
- func MapPorts(vc *viccontainer.VicContainer, endpoint *models.EndpointConfig, ...) error
- func PortForwardingInformation(vc *viccontainer.VicContainer, ips []string) []types.Port
- func PortMapFromContainer(vc *viccontainer.VicContainer, t *models.ContainerInfo) nat.PortMap
- func PublicIPv4Addrs() ([]string, error)
- func UnmapPorts(id string, vc *viccontainer.VicContainer) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ContainerByPort map[string]string // port:containerID
)
Functions ¶
func ContainerWithPort ¶
func DirectPortInformation ¶
func DirectPortInformation(t *models.ContainerInfo) []types.Port
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 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.
Click to show internal directories.
Click to hide internal directories.