package portmapper
import "github.com/docker/docker/daemon/networkdriver/portmapper"
Index ¶
- Variables
- type PortMapper
- func New() *PortMapper
- func NewWithPortAllocator(allocator *portallocator.PortAllocator) *PortMapper
- func (pm *PortMapper) Map(container net.Addr, hostIP net.IP, hostPort int) (host net.Addr, err error)
- func (pm *PortMapper) SetIptablesChain(c *iptables.Chain)
- func (pm *PortMapper) Unmap(host net.Addr) error
- type UserlandProxy
Variables ¶
var ( ErrUnknownBackendAddressType = errors.New("unknown container address type not supported") ErrPortMappedForIP = errors.New("port is already mapped to ip") ErrPortNotMapped = errors.New("port is not mapped") )
var NewProxy = NewProxyCommand
Types ¶
type PortMapper ¶
type PortMapper struct { Allocator *portallocator.PortAllocator // contains filtered or unexported fields }
func New ¶
func New() *PortMapper
func NewWithPortAllocator ¶
func NewWithPortAllocator(allocator *portallocator.PortAllocator) *PortMapper
func (*PortMapper) Map ¶
func (pm *PortMapper) Map(container net.Addr, hostIP net.IP, hostPort int) (host net.Addr, err error)
func (*PortMapper) SetIptablesChain ¶
func (pm *PortMapper) SetIptablesChain(c *iptables.Chain)
func (*PortMapper) Unmap ¶
func (pm *PortMapper) Unmap(host net.Addr) error
type UserlandProxy ¶
func NewMockProxyCommand ¶
func NewMockProxyCommand(proto string, hostIP net.IP, hostPort int, containerIP net.IP, containerPort int) UserlandProxy
func NewProxyCommand ¶
func NewProxyCommand(proto string, hostIP net.IP, hostPort int, containerIP net.IP, containerPort int) UserlandProxy
Source Files ¶
mapper.go mock_proxy.go proxy.go
- Version
- v1.6.2
- Published
- May 11, 2015
- Platform
- js/wasm
- Imports
- 18 packages
- Last checked
- 15 minutes ago –
Tools for package owners.