Remove environment.Environment struct
This commit completely removes the environment struct as it is no longer used.
This commit is contained in:
parent
3263920d6b
commit
473040a69f
40 changed files with 91 additions and 146 deletions
|
|
@ -94,7 +94,6 @@ func (backup *Backup) run(ctx context.Context, progress io.Writer, exporter *Exp
|
|||
return bc.Backup(
|
||||
component.NewStagingContext(
|
||||
ctx,
|
||||
exporter.Environment,
|
||||
writer,
|
||||
filepath.Join(backup.Description.Dest, bc.BackupName()),
|
||||
manifest,
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ func (exporter *Exporter) MakeExport(ctx context.Context, progress io.Writer, ta
|
|||
st.Start()
|
||||
defer st.Stop()
|
||||
|
||||
count, err = targz.Package(exporter.Environment, archivePath, stagingDir, func(dst, src string) {
|
||||
count, err = targz.Package(archivePath, stagingDir, func(dst, src string) {
|
||||
st.Set(0, dst)
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -124,7 +124,6 @@ func (snapshot *Snapshot) makeParts(ctx context.Context, progress io.Writer, sna
|
|||
instance.Instance,
|
||||
component.NewStagingContext(
|
||||
ctx,
|
||||
snapshots.Environment,
|
||||
writer,
|
||||
filepath.Join(snapshot.Description.Dest, sc.SnapshotName()),
|
||||
manifest,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue