Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgentBaseURL ¶
AgentBaseURL returns the HTTP base URL to use when constructing request URLs. For unix socket connections the actual host is irrelevant to the transport, so we normalise to http://localhost and route via the custom dialer.
func NewAgentHTTPClient ¶
NewAgentHTTPClient returns an http.Client configured to reach the fleetint daemon described by serverURL. For unix socket URLs it installs a custom dialer; for TCP URLs it returns a plain client.
func ValidateBackendEndpoint ¶
ValidateBackendEndpoint validates a trusted backend HTTPS endpoint.
func ValidateLocalServerURL ¶
ValidateLocalServerURL validates a CLI-supplied URL for the local fleetint daemon. It accepts:
- A bare absolute path (unix socket): /run/fleetint/fleetint.sock
- A unix:// URL: unix:///run/fleetint/fleetint.sock
- HTTP/HTTPS URLs with a loopback host: http://localhost:15133
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.