Documentation
¶
Index ¶
Constants ¶
View Source
const ( // The address a worker is told to call. It was the bridge gateway on the // worker's own host for as long as GARM ran there too. Clustering ended // that: a worker can be placed on any member, so the endpoint it reaches // has to be one address the whole fleet shares, and the default below is // only the single-host case. // ListenAddressRequired is deliberately empty. A clustered deployment has // no universal listen address; every unit must pass --listen explicitly. ListenAddressRequired = "" ExpectedUpstreamURL = "http://127.0.0.1:9997" MaxRequestBodyBytes = int64(1 << 20) )
Variables ¶
This section is empty.
Functions ¶
func ProductionUpstream ¶
func ValidateListenAddress ¶
ValidateListenAddress refuses anything but a literal IP and an explicit port. A name here would let DNS decide which machine terminates worker TLS, and the certificate the workers pin names addresses, not names.
Types ¶
type Gateway ¶
type Gateway struct {
// contains filtered or unexported fields
}
Gateway exposes only the GARM endpoints required by disposable workers. The GARM administrative API remains bound to loopback and is never routed here.
func NewWithCache ¶
Click to show internal directories.
Click to hide internal directories.