Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAvailableLocalAddress ¶
GetAvailableLocalAddress finds an available local port on tcp network and returns an endpoint describing it. The port is available for opening when this function returns provided that there is no race by some other code to grab the same port immediately.
func GetAvailableLocalNetworkAddress ¶ added in v0.57.2
GetAvailableLocalNetworkAddress finds an available local port on specified network and returns an endpoint describing it. The port is available for opening when this function returns provided that there is no race by some other code to grab the same port immediately.
func GetAvailablePort ¶
func SetFeatureGateForTest ¶ added in v0.55.0
func SetFeatureGateForTest(t testing.TB, gate *featuregate.Gate, enabled bool) func()
Force the state of feature gate for a test usage: defer SetFeatureGateForTest("gateName", true)()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.