garm/vendor/github.com/lxc/lxd/shared/api/container_backup.go
Gabriel Adrian Samfira c61b7fd268
Update go modules
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2023-03-12 16:22:37 +02:00

31 lines
1.1 KiB
Go

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"`
}