package portallocator

import "github.com/dotcloud/docker/daemon/networkdriver/portallocator"

Index

Constants

const (
	BeginPortRange = 49153
	EndPortRange   = 65535
)

Variables

var (
	ErrAllPortsAllocated    = errors.New("all ports are allocated")
	ErrPortAlreadyAllocated = errors.New("port has already been allocated")
	ErrUnknownProtocol      = errors.New("unknown protocol")
)

Functions

func ReleaseAll

func ReleaseAll() error

func ReleasePort

func ReleasePort(ip net.IP, proto string, port int) error

func RequestPort

func RequestPort(ip net.IP, proto string, port int) (int, error)

Source Files

portallocator.go

Version
v1.0.1
Published
Jun 19, 2014
Platform
linux/amd64
Imports
3 packages
Last checked
12 minutes ago

Tools for package owners.