Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/docker/go-connections
/ functions
Functions
176 in github.com/docker/go-connections
⨍
Functions
176
◇
Types & classes
25
Method
Range
Range returns the start/end port numbers of a Port range as ints
nat/nat.go:87
Method
Run
()
proxy/network_proxy_test.go:53
Method
Run
()
proxy/network_proxy_test.go:73
Method
Run
Run starts forwarding the traffic using TCP.
proxy/tcp_proxy.go:85
Method
Run
Run does nothing.
proxy/stub_proxy.go:14
Method
Run
Run starts forwarding the traffic using UDP.
proxy/udp_proxy.go:113
Method
String
String returns the string form
sockets/inmem_socket.go:16
Method
Swap
(i, j int)
nat/sort.go:17
Method
Swap
(i, j int)
nat/sort.go:46
Function
SystemCertPool
SystemCertPool returns a copy of the system cert pool. Deprecated: use [x509.SystemCertPool] instead. go:fix inline
tlsconfig/certpool.go:10
Function
TestConfigClientDefaultWithTLSMinimumModifier
If we provide a modifier to the client's default TLS configuration generator, it should be applied accordingly
tlsconfig/config_test.go:278
Function
TestConfigClientExclusiveRootPools
Exclusive root pools determines whether the CA pool will be a union of the system certificate pool and custom certs, or an exclusive or of the custom
tlsconfig/config_test.go:514
Function
TestConfigClientTLSClientCertOrKeyInvalid
An error is returned if either the client cert or the key are provided but invalid or blank.
tlsconfig/config_test.go:437
Function
TestConfigClientTLSEncryptedKey
(t *testing.T)
tlsconfig/config_test.go:493
Function
TestConfigClientTLSMinVersionIsSetBasedOnOptions
If a valid MinVersion is specified in the options, the client's minimum version should be set accordingly
tlsconfig/config_test.go:590
Function
TestConfigClientTLSMinVersionNotSetIfMinVersionIsInvalid
An error should be returned if an invalid minimum version for the client is in the options struct
tlsconfig/config_test.go:626
Function
TestConfigClientTLSMinVersionNotSetIfMinVersionIsTooLow
An error should be returned if the specified minimum version for the client is too low, i.e. less than VersionTLS12
tlsconfig/config_test.go:610
Function
TestConfigClientTLSNoRoot
The root CA is never set if InsecureSkipBoolean is set to false and root CA is not provided.
tlsconfig/config_test.go:381
Function
TestConfigClientTLSNoVerify
The root CA is never set if InsecureSkipBoolean is set to true, but the default client options are set
tlsconfig/config_test.go:354
Function
TestConfigClientTLSNonexistentRootCAFile
An error is returned if a root CA is provided but the file doesn't exist.
tlsconfig/config_test.go:427
Function
TestConfigClientTLSRootCAFileWithOneCert
The RootCA is set if the file is provided and InsecureSkipVerify is false
tlsconfig/config_test.go:405
Function
TestConfigClientTLSValidClientCertAndKey
The certificate is set if the client cert and client key are provided and valid.
tlsconfig/config_test.go:462
Function
TestConfigServerDefaultWithTLSMinimumModifier
If we provide a modifier to the server's default TLS configuration generator, it should be applied accordingly
tlsconfig/config_test.go:259
Function
TestConfigServerExclusiveRootPools
Exclusive root pools determines whether the CA pool will be a union of the system certificate pool and custom certs, or an exclusive or of the custom
tlsconfig/config_test.go:175
Function
TestConfigServerTLSClientCANotSetIfClientAuthTooLow
If client CA is provided, it will only be used if the client auth is >= VerifyClientCertIfGiven
tlsconfig/config_test.go:110
Function
TestConfigServerTLSClientCASet
If client CA is provided, it will only be used if the client auth is >= VerifyClientCertIfGiven
tlsconfig/config_test.go:138
Function
TestConfigServerTLSFailsIfUnableToLoadCerts
If the cert files and directory are provided but are invalid, an error is returned.
tlsconfig/config_test.go:41
Function
TestConfigServerTLSMinVersionIsSetBasedOnOptions
If a valid minimum version is specified in the options, the server's minimum version should be set accordingly
tlsconfig/config_test.go:297
Function
TestConfigServerTLSMinVersionNotSetIfMinVersionIsInvalid
An error should be returned if an invalid minimum version for the server is in the options struct
tlsconfig/config_test.go:338
Function
TestConfigServerTLSMinVersionNotSetIfMinVersionIsTooLow
An error should be returned if the specified minimum version for the server is too low, i.e. less than VersionTLS10
tlsconfig/config_test.go:322
Function
TestConfigServerTLSServerCertsOnly
If server cert and key are provided and client auth and client CA are not set, a tls config with only the server certs will be returned.
tlsconfig/config_test.go:72
Function
TestGetSecurityDescriptor
(t *testing.T)
sockets/unix_socket_windows_test.go:34
Function
TestInmemSocket
(t *testing.T)
sockets/inmem_socket_test.go:9
Function
TestNewUnixSocket
(t *testing.T)
sockets/unix_socket_windows_test.go:106
Function
TestNewUnixSocket
TestNewUnixSocket run under root user.
sockets/unix_socket_unix_test.go:83
Function
TestNewUnixSocketUnknownGroup
(t *testing.T)
sockets/unix_socket_windows_test.go:182
Function
TestNewUnixSocketWithOptsAbstract
TestNewUnixSocketWithOptsAbstract verifies that abstract Unix sockets behave correctly. Unlike filesystem-backed sockets, they must not create a socke
sockets/unix_socket_windows_test.go:121
Function
TestNewUnixSocketWithOptsAbstract
TestNewUnixSocketWithOptsAbstract verifies that abstract Unix sockets behave correctly. Unlike filesystem-backed sockets, they must not create a socke
sockets/unix_socket_unix_test.go:101
Function
TestNewUnixSocketWithOptsRemovesExistingFile
TestNewUnixSocketWithOptsRemovesExistingFile verifies that a pre-existing regular file is removed before creating the socket.
sockets/unix_socket_test.go:64
Function
TestParseNetworkOptsNegativePorts
(t *testing.T)
nat/nat_test.go:703
Function
TestParseNetworkOptsPrivateOnly
(t *testing.T)
nat/nat_test.go:602
Function
TestParseNetworkOptsPublic
(t *testing.T)
nat/nat_test.go:644
Function
TestParseNetworkOptsPublicNoPort
(t *testing.T)
nat/nat_test.go:686
Function
TestParseNetworkOptsSctp
(t *testing.T)
nat/nat_test.go:761
Function
TestParseNetworkOptsUdp
(t *testing.T)
nat/nat_test.go:719
Function
TestParsePort
(t *testing.T)
nat/nat_test.go:8
Function
TestParsePortNumber
(t *testing.T)
nat/parse_test.go:124
Function
TestParsePortRange
(t *testing.T)
nat/parse_test.go:5
Function
TestParsePortRangeToInt
TestParsePortRangeToInt tests behavior that's specific to [ParsePortRangeToInt], which is a shallow wrapper around [ParsePortRange], except for return
nat/nat_test.go:87
Function
TestParsePortSpecEmptyContainerPort
(t *testing.T)
nat/nat_test.go:244
Function
TestParsePortSpecFull
(t *testing.T)
nat/nat_test.go:276
Function
TestParsePortSpecs
(t *testing.T)
nat/nat_test.go:390
Function
TestParsePortSpecsWithRange
(t *testing.T)
nat/nat_test.go:501
Function
TestPartPortSpecIPV6
(t *testing.T)
nat/nat_test.go:304
Function
TestPort
(t *testing.T)
nat/nat_test.go:104
Function
TestSortPortMap
(t *testing.T)
nat/sort_test.go:44
Function
TestSortSamePortWithDifferentProto
(t *testing.T)
nat/sort_test.go:26
Function
TestSortUniquePorts
(t *testing.T)
nat/sort_test.go:9
Function
TestSplitProtoPort
(t *testing.T)
nat/nat_test.go:146
Function
TestStringer
(t *testing.T)
nat/nat_test.go:803
Function
TestTCP4Proxy
(t *testing.T)
proxy/network_proxy_test.go:120
Function
TestTCP6Proxy
(t *testing.T)
proxy/network_proxy_test.go:132
Function
TestTCPDualStackProxy
(t *testing.T)
proxy/network_proxy_test.go:144
Function
TestUDP4Proxy
(t *testing.T)
proxy/network_proxy_test.go:163
Function
TestUDP6Proxy
(t *testing.T)
proxy/network_proxy_test.go:175
Function
TestUDPWriteError
(t *testing.T)
proxy/network_proxy_test.go:187
Function
TestUnixSocketWithOpts
(t *testing.T)
sockets/unix_socket_windows_test.go:94
Function
TestUnixSocketWithOpts
(t *testing.T)
sockets/unix_socket_unix_test.go:13
Function
TestUnixSocketWithOptsCleanupOnError
TestUnixSocketWithOptsCleanupOnError verifies that partially initialized sockets are cleaned up when a socket option returns an error.
sockets/unix_socket_unix_test.go:64
Function
TestUnixSocketWithOptsDefaultPermissions
TestUnixSocketWithOptsDefaultPermissions verifies that sockets created without an explicit WithChmod option have permissions set to 0000.
sockets/unix_socket_unix_test.go:43
Function
configureNpipeTransport
(tr *http.Transport, addr string)
sockets/sockets_windows.go:11
Function
listenUnix
(path string, opts ...SockOption)
sockets/unix_socket_windows.go:131
Function
main
()
tlsconfig/fixtures/generate.go:109
Function
maxListenerBacklog
maxListenerBacklog is similar to the equivalent in stdlib; https://github.com/golang/go/blob/go1.26.3/src/net/sock_bsd.go#L14-L39
sockets/unix_socket_bsd.go:12
Function
maxListenerBacklog
maxListenerBacklog returns the maximum length of the queue of pending connections for a listening socket. It is similar to in stdlib, but without the
sockets/unix_socket_linux.go:15
Function
maxListenerBacklog
()
sockets/unix_socket_other.go:7
← previous
101–176 of 176, ranked by callers