Documentation
¶
Overview ¶
Package httprelay exposes a remote agent configuration through an HTTP handler.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler relays an agent configuration from a trusted HTTP endpoint.
func New ¶
New creates a configuration relay. Redirects are always refused so request credentials cannot be replayed to another endpoint.
type Option ¶
type Option func(*Handler)
Option configures a Handler.
func WithClient ¶
WithClient sets the outbound client. Its redirect policy is replaced with a no-redirect policy.
func WithMaxBytes ¶
WithMaxBytes sets the maximum accepted configuration size.
func WithTimeout ¶
WithTimeout sets the end-to-end upstream request timeout.
Click to show internal directories.
Click to hide internal directories.