Move instances into a separate component

This commit is contained in:
Tom Wiesing 2022-09-14 18:07:12 +02:00
parent 233a51d4cd
commit a8da3f70eb
No known key found for this signature in database
46 changed files with 553 additions and 551 deletions

View file

@ -205,7 +205,7 @@ func (backup *Backup) run(io stream.IOStream, dis *Distillery) {
}
// list all instances
instances, err := dis.AllInstances()
instances, err := dis.Instances().All()
if err != nil {
backup.InstanceListErr = err
return
@ -224,7 +224,7 @@ func (backup *Backup) run(io stream.IOStream, dis *Distillery) {
}
files <- dir
return instance.Snapshot(iochild, SnapshotDescription{
return dis.Snapshot(instance, iochild, SnapshotDescription{
Dest: dir,
})
}()