endpoint

package
v1.1.1-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentBaseURL

func AgentBaseURL(serverURL *url.URL) *url.URL

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 JoinPath

func JoinPath(base *url.URL, elems ...string) (string, error)

JoinPath appends path elements to a validated base URL.

func NewAgentHTTPClient

func NewAgentHTTPClient(serverURL *url.URL) *http.Client

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

func ValidateBackendEndpoint(raw string) (*url.URL, error)

ValidateBackendEndpoint validates a trusted backend HTTPS endpoint.

func ValidateLocalServerURL

func ValidateLocalServerURL(raw string) (*url.URL, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL