Documentation
¶
Index ¶
- func CheckpointsDir() string
- func CreateCheckpoint(providerName, name string) error
- func DeleteCheckpoint(name string) error
- func GenerateJSON(r *DumpReport) string
- func GenerateMarkdown(r *DumpReport) string
- func RestoreCheckpoint(providerName, name string) error
- type CheckpointInfo
- type ContainerDiagnostic
- type DumpReport
- type RedactedConfig
- type TopologyStatus
- type TunnelDiagnostic
- type VMStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckpointsDir ¶
func CheckpointsDir() string
CheckpointsDir returns the directory where state checkpoints are stored.
func CreateCheckpoint ¶
CreateCheckpoint snapshots all running devx-managed containers using podman's CRIU integration.
func DeleteCheckpoint ¶
DeleteCheckpoint completely removes a checkpoint and its archives.
func GenerateMarkdown ¶
func GenerateMarkdown(r *DumpReport) string
GenerateMarkdown converts the diagnostic dump into a readable markdown string.
func RestoreCheckpoint ¶
RestoreCheckpoint restores all containers associated with the named checkpoint. Restores are performed sequentially to avoid port-binding races when CRIU re-binds the original network sockets.
Types ¶
type CheckpointInfo ¶
type CheckpointInfo struct {
Name string `json:"name"`
ContainerCount int `json:"container_count"`
SizeBytes int64 `json:"size_bytes"`
CreatedAt string `json:"created_at"`
}
CheckpointInfo holds metadata about a stored checkpoint.
func ListCheckpoints ¶
func ListCheckpoints() ([]CheckpointInfo, error)
ListCheckpoints returns metadata for all existing checkpoints.
type ContainerDiagnostic ¶
type DumpReport ¶
type DumpReport struct {
DoctorReport *doctor.Report `json:"doctor_report"`
VM VMStatus `json:"vm_status"`
Topology TopologyStatus `json:"topology"`
Tunnels []TunnelDiagnostic `json:"tunnels"`
Config RedactedConfig `json:"redacted_config"`
}
DumpReport represents the full topological and contextual state of the devx environment.
func GenerateDump ¶
func GenerateDump(cfg *config.Config, vmProviderName string, vmState string, tsStatus string) (*DumpReport, error)
GenerateDump orchestrates the collection of state for all sub-systems.
type RedactedConfig ¶
type TopologyStatus ¶
type TopologyStatus struct {
DevxManagedContainers []ContainerDiagnostic `json:"devx_managed_containers"`
}