package
0.8.0-dev.2
Repository: https://github.com/datastream/libnetwork.git
Documentation: pkg.go.dev

# Functions

BadRequestErrorf creates an instance of BadRequestError.
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.
GetMinimalIP returns the address in its shortest form.
GetMinimalIPNet returns a copy of the passed IP Network with congruent ip and mask notation.
InternalErrorf creates an instance of InternalError.
InternalMaskableErrorf creates an instance of InternalError and MaskableError.
IsIPNetValid returns true if the ipnet is a valid network/mask combination.
NoServiceErrorf creates an instance of NoServiceError.
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.
RetryErrorf creates an instance of RetryError.
TimeoutErrorf creates an instance of TimeoutError.

# 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.
constants for the IP address type.
NEXTHOP indicates a StaticRoute with an IP next hop.
TCP is for the TCP ip protocol.
UDP is for the UDP ip protocol.

# Structs

InterfaceStatistics represents the interface's statistics.
PortBinding represent 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 represent a local Layer 4 endpoint.

# Interfaces

BadRequestError is an interface for errors originated by a bad request.
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.
MaskableError is an interface for errors which can be ignored by caller.
NoServiceError is an interface for errors returned when the required service is not available.
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.
RetryError is an interface for errors which might get resolved through retry.
TimeoutError is an interface for errors raised because of timeout.

# Type aliases

ErrInvalidProtocolBinding is returned when the port binding protocol is not valid.
Protocol represents a IP protocol number.
UUID represents a globally unique ID of various resources like network and endpoint.