Moves the generation of graphConnector to the NewBackupOp and NewRestoreOp constructors inside the repository. This removes gc creation from the backup and restore operations, and requires a reference to gc to exist in operations. This sets up two changes: 1/ mocking of GC within operation (the next PR will replace it with an interface). 2/ the ability to perform a gc validation step within the operation construction, and thus the capacity to look up a resource owner display name or id, and vice versa. --- #### Does this PR need a docs update or release note? - [x] ⛔ No #### Type of change - [x] 🌻 Feature #### Issue(s) * #2825 #### Test Plan - [x] ⚡ Unit test - [x] 💚 E2E
SRC Directory
/pkg
API and Components which are exposed for external usage.
-
/pkg/repository
Control layer for coordinating connections and communication with storage provider repositories. -
/pkg/storage
Manages compilation and validation of repository configuration and consts. Both those that are specific to storage providers, and those that are provider-agnostic.
/cli
Command Line Interface controller. Utilizes /pkg/repository as an exernal dependency.
/internal
Packages which are only intended for use within Corso.