This PR includes two smaller changes that cascaded to touch a lot of files: first, introduces inject.RestoreConsumerConfig, which is a container-of-things for holding common restore configs and options. second, moves the restorePermissions flag from options into the restoreConfig.
19 lines
587 B
Go
19 lines
587 B
Go
package inject
|
|
|
|
import (
|
|
"github.com/alcionai/corso/src/internal/common/idname"
|
|
"github.com/alcionai/corso/src/pkg/control"
|
|
"github.com/alcionai/corso/src/pkg/selectors"
|
|
)
|
|
|
|
// RestoreConsumerConfig container-of-things for holding options and
|
|
// configurations from various packages, which are widely used by all
|
|
// restore consumers independent of service or data category.
|
|
type RestoreConsumerConfig struct {
|
|
BackupVersion int
|
|
Options control.Options
|
|
ProtectedResource idname.Provider
|
|
RestoreConfig control.RestoreConfig
|
|
Selector selectors.Selector
|
|
}
|