soteria/internal/api/types.go
2026-01-31 03:34:34 -03:00

31 lines
789 B
Go

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 {
JobName string `json:"job_name"`
Namespace string `json:"namespace"`
Secret string `json:"secret"`
DryRun bool `json:"dry_run"`
}
type RestoreTestRequest struct {
Namespace string `json:"namespace"`
Snapshot string `json:"snapshot,omitempty"`
TargetPVC string `json:"target_pvc,omitempty"`
DryRun bool `json:"dry_run"`
}
type RestoreTestResponse struct {
JobName string `json:"job_name"`
Namespace string `json:"namespace"`
Secret string `json:"secret"`
DryRun bool `json:"dry_run"`
}