portmapper

package
v1.5.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2015 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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")
)
View Source
var (
	NewProxy = NewProxyCommand
)

Functions

func Map

func Map(container net.Addr, hostIP net.IP, hostPort int) (host net.Addr, err error)

func SetIptablesChain

func SetIptablesChain(c *iptables.Chain)

func Unmap

func Unmap(host net.Addr) error

Types

type UserlandProxy added in v1.2.0

type UserlandProxy interface {
	Start() error
	Stop() error
}

func NewMockProxyCommand added in v1.2.0

func NewMockProxyCommand(proto string, hostIP net.IP, hostPort int, containerIP net.IP, containerPort int) UserlandProxy

func NewProxyCommand added in v1.2.0

func NewProxyCommand(proto string, hostIP net.IP, hostPort int, containerIP net.IP, containerPort int) UserlandProxy

Jump to

Keyboard shortcuts

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