rename export interface (#3916)
to better match current standards
#### Type of change
- [x] 🧹 Tech Debt/Cleanup
This commit is contained in:
parent
578a720c67
commit
a973f69d18
@ -17,8 +17,8 @@ import (
|
||||
"github.com/alcionai/corso/src/pkg/selectors"
|
||||
)
|
||||
|
||||
// ExportRestoreCollections exports data from the specified collections
|
||||
func (ctrl *Controller) ExportRestoreCollections(
|
||||
// ProduceExportCollections exports data from the specified collections
|
||||
func (ctrl *Controller) ProduceExportCollections(
|
||||
ctx context.Context,
|
||||
backupVersion int,
|
||||
sels selectors.Selector,
|
||||
@ -42,7 +42,7 @@ func (ctrl *Controller) ExportRestoreCollections(
|
||||
|
||||
switch sels.Service {
|
||||
case selectors.ServiceOneDrive:
|
||||
expCollections, err = onedrive.ExportRestoreCollections(
|
||||
expCollections, err = onedrive.ProduceExportCollections(
|
||||
ctx,
|
||||
backupVersion,
|
||||
exportCfg,
|
||||
|
||||
@ -74,7 +74,7 @@ func (ctrl Controller) ConsumeRestoreCollections(
|
||||
|
||||
func (ctrl Controller) CacheItemInfo(dii details.ItemInfo) {}
|
||||
|
||||
func (ctrl Controller) ExportRestoreCollections(
|
||||
func (ctrl Controller) ProduceExportCollections(
|
||||
_ context.Context,
|
||||
_ int,
|
||||
_ selectors.Selector,
|
||||
|
||||
@ -131,9 +131,9 @@ func getItemName(
|
||||
return "", clues.New("invalid item id").WithClues(ctx)
|
||||
}
|
||||
|
||||
// ExportRestoreCollections will create the export collections for the
|
||||
// ProduceExportCollections will create the export collections for the
|
||||
// given restore collections.
|
||||
func ExportRestoreCollections(
|
||||
func ProduceExportCollections(
|
||||
ctx context.Context,
|
||||
backupVersion int,
|
||||
exportCfg control.ExportConfig,
|
||||
|
||||
@ -447,7 +447,7 @@ func (suite *ExportUnitSuite) TestExportRestoreCollections() {
|
||||
}
|
||||
|
||||
exportCfg := control.ExportConfig{}
|
||||
ecs, err := ExportRestoreCollections(ctx, int(version.Backup), exportCfg, control.Options{}, dcs, nil, fault.New(true))
|
||||
ecs, err := ProduceExportCollections(ctx, int(version.Backup), exportCfg, control.Options{}, dcs, nil, fault.New(true))
|
||||
assert.NoError(t, err, "export collections error")
|
||||
|
||||
assert.Len(t, ecs, 1, "num of collections")
|
||||
|
||||
@ -343,7 +343,7 @@ func exportRestoreCollections(
|
||||
close(complete)
|
||||
}()
|
||||
|
||||
expCollections, err := ec.ExportRestoreCollections(
|
||||
expCollections, err := ec.ProduceExportCollections(
|
||||
ctx,
|
||||
backupVersion,
|
||||
sel,
|
||||
|
||||
@ -59,7 +59,7 @@ type (
|
||||
}
|
||||
|
||||
ExportConsumer interface {
|
||||
ExportRestoreCollections(
|
||||
ProduceExportCollections(
|
||||
ctx context.Context,
|
||||
backupVersion int,
|
||||
selector selectors.Selector,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user