Documentation
¶
Overview ¶
Package gateway implements enrollment, discovery, signaling, encrypted relay fallback, and fleet administration. It does not schedule or execute application work.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Gateway ¶
type Gateway struct {
// contains filtered or unexported fields
}
Gateway manages fleet membership and connectivity for nodes and clients.
func (*Gateway) StartUpdates ¶
StartUpdates begins managed rollout after the server is configured. A fresh heartbeat and an acknowledged idle reservation are required from every online peer before any binary replacement can start.
type GatewayMetrics ¶
type GatewayMetrics struct {
ConnectedMachines int `json:"connectedMachines"`
ConnectedClients int `json:"connectedClients"`
QueuedRelayBytes int64 `json:"queuedRelayBytes"`
Connects int64 `json:"connects"`
Disconnects int64 `json:"disconnects"`
AuthFailures int64 `json:"authFailures"`
RelayPackets int64 `json:"relayPackets"`
RelayBytes int64 `json:"relayBytes"`
// RelayOverflows counts relay sessions closed because their destination's
// queue was full. The destination's gateway connection stays open.
RelayOverflows int64 `json:"relayOverflows"`
// RelayDropped counts signaling packets dropped for a full destination queue.
RelayDropped int64 `json:"relayDropped"`
}
GatewayMetrics is the superuser diagnostic snapshot.
type Hello ¶
type Hello struct {
Version string `json:"version"`
Node model.Node `json:"node"`
// NodeBytes, when present, is the exact signed registration. Gateways that
// advertise nodeBytes decode it leniently, so a newer node's unknown fields
// no longer invalidate a signature computed over a re-encoding.
NodeBytes []byte `json:"nodeBytes,omitempty"`
Client bool `json:"client,omitempty"`
OwnerKey []byte `json:"ownerKey,omitempty"`
OwnerSignature []byte `json:"ownerSignature,omitempty"`
Signature []byte `json:"signature"`
}
func (Hello) OwnerMessage ¶
OwnerMessage authorizes this particular TLS identity to act for a stable client owner. A bearer credential alone cannot impersonate another owner.
Click to show internal directories.
Click to hide internal directories.