Documentation
¶
Overview ¶
Package net contains some helper wrapping functions for the http and net golang libraries that meet Packer-specific needs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrPortBusy ¶
func (*ErrPortBusy) Error ¶
func (err *ErrPortBusy) Error() string
type ErrPortFileLocked ¶
type ErrPortFileLocked int
func (ErrPortFileLocked) Error ¶
func (port ErrPortFileLocked) Error() string
type ListenRangeConfig ¶
type ListenRangeConfig struct {
// like "tcp" or "udp". defaults to "tcp".
Network string
Addr string
Min, Max int
net.ListenConfig
}
ListenRangeConfig contains options for listening to a free address [Min,Max) range. ListenRangeConfig wraps a net.ListenConfig.
type Listener ¶
type Listener struct {
// Listener can be closed but Port will be file locked by packer until
// Close is called.
net.Listener
Port int
Address string
// contains filtered or unexported fields
}
Listener wraps a net.Lister with some Packer-specific capabilies. For example, until you call Listener.Close, any call to ListenRangeConfig.Listen cannot bind to a Port. Packer tries to tell moving parts which port they can use, but often the port has to be released before a 3rd party is started, like a VNC server.
Click to show internal directories.
Click to hide internal directories.