Versions in this module Expand all Collapse all v0 v0.1.0 Jul 8, 2015 Changes in this version + var ErrPortMappedForIP = errors.New("port is already mapped to ip") + var ErrPortNotMapped = errors.New("port is not mapped") + var ErrUnknownBackendAddressType = errors.New("unknown container address type not supported") + type PortMapper struct + Allocator *portallocator.PortAllocator + func New() *PortMapper + func NewWithPortAllocator(allocator *portallocator.PortAllocator) *PortMapper + func (pm *PortMapper) Map(container net.Addr, hostIP net.IP, hostPort int, useProxy bool) (host net.Addr, err error) + func (pm *PortMapper) SetIptablesChain(c *iptables.Chain) + func (pm *PortMapper) Unmap(host net.Addr) error