edgeboxctl/internal/backups/backups.go

28 lines
798 B
Go
Raw Permalink Normal View History

2023-05-29 21:52:27 +02:00
package backups
// import (
// "fmt"
// "os"
// "path/filepath"
// "strings"
2023-05-29 21:52:27 +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"`
// 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"`
}