2026-01-31 03:34:34 -03:00
|
|
|
package api
|
|
|
|
|
|
|
|
|
|
type BackupRequest struct {
|
|
|
|
|
Namespace string `json:"namespace"`
|
|
|
|
|
PVC string `json:"pvc"`
|
|
|
|
|
Tags []string `json:"tags,omitempty"`
|
|
|
|
|
Snapshot bool `json:"snapshot"`
|
|
|
|
|
DryRun bool `json:"dry_run"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type BackupResponse struct {
|
2026-02-06 18:25:19 -03:00
|
|
|
Driver string `json:"driver,omitempty"`
|
|
|
|
|
Volume string `json:"volume,omitempty"`
|
|
|
|
|
Backup string `json:"backup,omitempty"`
|
|
|
|
|
JobName string `json:"job_name,omitempty"`
|
|
|
|
|
Namespace string `json:"namespace,omitempty"`
|
|
|
|
|
Secret string `json:"secret,omitempty"`
|
2026-01-31 03:34:34 -03:00
|
|
|
DryRun bool `json:"dry_run"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type RestoreTestRequest struct {
|
|
|
|
|
Namespace string `json:"namespace"`
|
2026-02-06 18:25:19 -03:00
|
|
|
PVC string `json:"pvc,omitempty"`
|
2026-01-31 03:34:34 -03:00
|
|
|
Snapshot string `json:"snapshot,omitempty"`
|
2026-02-06 18:25:19 -03:00
|
|
|
BackupURL string `json:"backup_url,omitempty"`
|
2026-01-31 03:34:34 -03:00
|
|
|
TargetPVC string `json:"target_pvc,omitempty"`
|
|
|
|
|
DryRun bool `json:"dry_run"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type RestoreTestResponse struct {
|
2026-02-06 18:25:19 -03:00
|
|
|
Driver string `json:"driver,omitempty"`
|
|
|
|
|
Volume string `json:"volume,omitempty"`
|
|
|
|
|
TargetPVC string `json:"target_pvc,omitempty"`
|
|
|
|
|
BackupURL string `json:"backup_url,omitempty"`
|
|
|
|
|
JobName string `json:"job_name,omitempty"`
|
|
|
|
|
Namespace string `json:"namespace,omitempty"`
|
|
|
|
|
Secret string `json:"secret,omitempty"`
|
2026-01-31 03:34:34 -03:00
|
|
|
DryRun bool `json:"dry_run"`
|
|
|
|
|
}
|