garm/vendor/github.com/lxc/lxd/shared/api/container_backup.go
Gabriel Adrian Samfira bbbe67bf7c Vendor packages and add Makefile
* Vendors packages
  * Adds a Makefile that uses docker to build a static binary against musl
using alpine linux.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2022-06-30 10:20:32 +00:00

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