Documentation
¶
Index ¶
Constants ¶
View Source
const ( // RequestDir is where fence agents write fence request files RequestDir = "/localdisk/fence-recorder/requests" // ResponseDir is where nnf-sos writes fence response files ResponseDir = "/localdisk/fence-recorder/responses" )
Fence Recorder Configuration These paths are shared between nnf-sos and fence-agents repositories. If you change these values, ensure both repositories are updated.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FenceRequest ¶
type FenceRequest struct {
RequestID string `json:"request_id"`
Timestamp string `json:"timestamp"`
Action string `json:"action"`
TargetNode string `json:"target_node"`
RecorderNode string `json:"recorder_node"`
FilePath string `json:"-"` // Not from JSON, added when parsing
ReceivedAt time.Time `json:"-"` // When we received this request, for stale cleanup
}
FenceRequest represents a fencing request written by a fence agent
type FenceResponse ¶
type FenceResponse struct {
RequestID string `json:"request_id"`
Status string `json:"status,omitempty"` // "success" or "error"
Success bool `json:"success"`
Message string `json:"message"`
Timestamp string `json:"timestamp"` // ISO 8601 timestamp
TargetNode string `json:"target_node"`
Action string `json:"action,omitempty"`
RecorderNode string `json:"recorder_node,omitempty"`
ActionPerformed string `json:"action_performed,omitempty"`
}
FenceResponse represents the response written by nnf-sos after processing a fence request
Click to show internal directories.
Click to hide internal directories.