Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶ added in v1.65.0
type Option func(*ToolSet)
Option configures an api ToolSet.
func WithAllowPrivateIPs ¶ added in v1.65.0
WithAllowPrivateIPs disables SSRF dial-time protection so the api tool may dial loopback / RFC1918 / link-local addresses. Operators opt in via `allow_private_ips: true` when the configured endpoint legitimately targets internal services. Tests use this to talk to httptest.NewServer.
func WithTimeout ¶ added in v1.65.0
WithTimeout overrides the default 30s HTTP client timeout.
Click to show internal directories.
Click to hide internal directories.