forked from canonical/lxd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
container_backup.go
29 lines (25 loc) · 1.1 KB
/
container_backup.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package api
import "time"
// ContainerBackupsPost represents the fields available for a new LXD container backup
// API extension: container_backup
type ContainerBackupsPost struct {
Name string `json:"name" yaml:"name"`
ExpiresAt time.Time `json:"expires_at" yaml:"expires_at"`
ContainerOnly bool `json:"container_only" yaml:"container_only"`
OptimizedStorage bool `json:"optimized_storage" yaml:"optimized_storage"`
}
// ContainerBackup represents a LXD container backup
// API extension: container_backup
type ContainerBackup struct {
Name string `json:"name" yaml:"name"`
CreatedAt time.Time `json:"created_at" yaml:"created_at"`
ExpiresAt time.Time `json:"expires_at" yaml:"expires_at"`
ContainerOnly bool `json:"container_only" yaml:"container_only"`
OptimizedStorage bool `json:"optimized_storage" yaml:"optimized_storage"`
}
// ContainerBackupPost represents the fields available for the renaming of a
// container backup
// API extension: container_backup
type ContainerBackupPost struct {
Name string `json:"name" yaml:"name"`
}