Documentation ¶
Index ¶
- func HostIPDependency(slot *net.IP) daemon.DependencySlot
- func NormalizeHostPort(hostPort string, network string, emptyHostOk bool) (string, error)
- func SplitHostPort(hostPort string, network string, emptyHostOk bool) (string, int, error)
- type IPPort
- func (a IPPort) Equal(b IPPort) bool
- func (ipPort IPPort) IP() net.IP
- func (a IPPort) LessThan(b IPPort) bool
- func (ipPort IPPort) MarshalText() ([]byte, error)
- func (ipPort IPPort) Port() int
- func (ipPort IPPort) String() string
- func (ipPort *IPPort) TCPAddr() *net.TCPAddr
- func (ipPort *IPPort) UnmarshalText(text []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HostIPDependency ¶
func HostIPDependency(slot *net.IP) daemon.DependencySlot
func NormalizeHostPort ¶
Check that a "host:port" string looks reasonable, and resolve the port. network is a go net pkg network type identifier.
Types ¶
type IPPort ¶
type IPPort struct {
// contains filtered or unexported fields
}
IPPort is opaque, to allow a representation that works as a map key
func ParseIPPort ¶
Check that a string can be parsed as "ipaddress:port", and return the IPPort made from those parts if so.
func (IPPort) MarshalText ¶
func (*IPPort) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.