Skip to content

Commit

Permalink
Merge pull request #311 from Scalingo/fix/backup_fields
Browse files Browse the repository at this point in the history
feat(backup): add `StartedAt` and `Method` fields
  • Loading branch information
EtienneM authored Feb 23, 2023
2 parents 7f5e18d + f8e067e commit 839457d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## To Be Released

* feat(stacks): add support for Deployment `stack_base_image`
* feat(backup): add `StartedAt` and `Method` fields

## 6.3.0

Expand Down
10 changes: 9 additions & 1 deletion backups.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,22 @@ const (
BackupStatusError BackupStatus = "error"
)

type BackupMethod string

const (
BackupMethodPeriodic BackupMethod = "periodic"
BackupMethodManual BackupMethod = "manual"
)

type Backup struct {
ID string `json:"id"`
CreatedAt time.Time `json:"created_at"`
StartedAt time.Time `json:"started_at"`
Name string `json:"name"`
Size uint64 `json:"size"`
Status BackupStatus `json:"status"`
DatabaseID string `json:"database_id"`
Direct bool `json:"direct"`
Method BackupMethod `json:"method"`
}

type BackupsRes struct {
Expand Down

0 comments on commit 839457d

Please sign in to comment.