2018-09-26 22:18:45 +00:00
|
|
|
package backup
|
|
|
|
|
|
|
|
import (
|
2019-01-25 03:33:07 +00:00
|
|
|
velerov1api "github.com/heptio/velero/pkg/apis/velero/v1"
|
|
|
|
"github.com/heptio/velero/pkg/util/collections"
|
|
|
|
"github.com/heptio/velero/pkg/volume"
|
2018-09-26 22:18:45 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Request is a request for a backup, with all references to other objects
|
|
|
|
// materialized (e.g. backup/snapshot locations, includes/excludes, etc.)
|
|
|
|
type Request struct {
|
2019-01-25 03:33:07 +00:00
|
|
|
*velerov1api.Backup
|
2018-09-26 22:18:45 +00:00
|
|
|
|
2019-01-25 03:33:07 +00:00
|
|
|
StorageLocation *velerov1api.BackupStorageLocation
|
|
|
|
SnapshotLocations []*velerov1api.VolumeSnapshotLocation
|
2018-09-26 22:18:45 +00:00
|
|
|
NamespaceIncludesExcludes *collections.IncludesExcludes
|
|
|
|
ResourceIncludesExcludes *collections.IncludesExcludes
|
|
|
|
ResourceHooks []resourceHook
|
|
|
|
ResolvedActions []resolvedAction
|
2018-10-12 17:55:02 +00:00
|
|
|
|
|
|
|
VolumeSnapshots []*volume.Snapshot
|
2018-09-26 22:18:45 +00:00
|
|
|
}
|