package
0.0.0-20241112080837-97b903613cec
Repository: https://github.com/deepin-community/docker.io.git
Documentation: pkg.go.dev

# Functions

CompareIPNet returns equal if the two IP Networks are equal.
ForbiddenErrorf creates an instance of ForbiddenError.
GetBroadcastIP returns the broadcast ip address for the passed network (ip and mask).
GetHostPartIP returns the host portion of the ip address identified by the mask.
GetIPCopy returns a copy of the passed IP address.
GetIPNetCanonical returns the canonical form for the passed network.
GetIPNetCopy returns a copy of the passed IP Network.
GetMacCopy returns a copy of the passed MAC address.
InternalErrorf creates an instance of InternalError.
InternalMaskableErrorf creates an instance of InternalError and MaskableError.
InvalidParameterErrorf creates an instance of InvalidParameterError.
IsIPNetValid returns true if the ipnet is a valid network/mask combination.
NotFoundErrorf creates an instance of NotFoundError.
NotImplementedErrorf creates an instance of NotImplementedError.
ParseCIDR returns the *net.IPNet represented by the passed CIDR notation.
ParseProtocol returns the respective Protocol type for the passed string.
UnavailableErrorf creates an instance of UnavailableError.

# Constants

CONNECTED indicates a StaticRoute with an interface for directly connected peers.
ICMP is for the ICMP ip protocol.
IPv4 and IPv6.
constants for the IP address type Deprecated: use the consts defined in github.com/docker/docker/libnetwork/resolvconf.
constants for the IP address type Deprecated: use the consts defined in github.com/docker/docker/libnetwork/resolvconf.
NEXTHOP indicates a StaticRoute with an IP next hop.
SCTP is for the SCTP ip protocol.
TCP is for the TCP ip protocol.
UDP is for the UDP ip protocol.

# Structs

EncryptionKey is the libnetwork representation of the key distributed by the lead manager.
InterfaceStatistics represents the interface's statistics.
PortBinding represents a port binding between the container and the host.
QosPolicy represents a quality of service policy on an endpoint.
StaticRoute is a statically-provisioned IP route.
TransportPort represents a local Layer 4 endpoint.

# Interfaces

ForbiddenError is an interface for errors which denote a valid request that cannot be honored.
InternalError is an interface for errors raised because of an internal error.
InvalidParameterError is an interface for errors originated by a bad request.
MaskableError is an interface for errors which can be ignored by caller.
NotFoundError is an interface for errors raised because a needed resource is not available.
NotImplementedError is an interface for errors raised because of requested functionality is not yet implemented.
UnavailableError is an interface for errors returned when the required service is not available.

# Type aliases

Protocol represents an IP protocol number.