Documentation
¶
Overview ¶
Package nodecontrol transports a small owner-authorized allowlist through shared storage. Bus messages are hints; only the exact target writes receipts.
Index ¶
Constants ¶
View Source
const Freshness = 30 * time.Second
View Source
const Topic = "nodecontrol.changed"
Variables ¶
View Source
var ErrInvalid = errors.New("invalid request")
View Source
var ErrUnsupported = errors.New("unsupported setting")
Functions ¶
This section is empty.
Types ¶
type Capability ¶
type Control ¶
type Control struct {
NodeID string `json:"nodeId"`
Boot string `json:"boot"`
RequestedVersion int64 `json:"requestedVersion"`
AppliedVersion int64 `json:"appliedVersion"`
State string `json:"state"`
RequestID string `json:"requestId,omitempty"`
ErrorCode string `json:"errorCode,omitempty"`
UpdatedAt time.Time `json:"updatedAt"`
Observed Observed `json:"observed"`
Capabilities []Capability `json:"capabilities"`
}
type Service ¶
type Service struct {
Store *clusterconfig.NodeControls
Bus clusterbus.Bus
NodeID, Boot string
Target Target
}
Click to show internal directories.
Click to hide internal directories.