2023-05-29 21:52:27 +02:00
|
|
|
package backups
|
|
|
|
|
2023-05-30 21:20:30 +02:00
|
|
|
// import (
|
|
|
|
// "fmt"
|
|
|
|
// "os"
|
|
|
|
// "path/filepath"
|
|
|
|
// "strings"
|
2023-05-29 21:52:27 +02:00
|
|
|
|
2023-05-30 21:20:30 +02:00
|
|
|
// "github.com/edgebox-iot/edgeboxctl/internal/diagnostics"
|
|
|
|
// "github.com/edgebox-iot/edgeboxctl/internal/utils"
|
|
|
|
// "github.com/shirou/gopsutil/disk"
|
|
|
|
// )
|
2023-05-29 21:52:27 +02:00
|
|
|
|
|
|
|
// Repository : Struct representing the backup repository of a device in the system
|
|
|
|
type Repository struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
FileCount int64 `json:"file_count"`
|
|
|
|
Size string `json:"size"`
|
|
|
|
Snapshots []Snapshot `json:"snapshots"`
|
|
|
|
Status string `json:"status"`
|
2023-05-30 21:21:24 +02:00
|
|
|
// UsageStat UsageStat `json:"usage_stat"`
|
2023-05-29 21:52:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Snapshot : Struct representing a single snapshot in the backup repository
|
|
|
|
type Snapshot struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
time string `json:"time"`
|
|
|
|
}
|