This adds the final piece to enable OneDrive exports. The CLI interface which consumes NewExport interface from Repository and lets the user to export and write the contents in a backup to the local filesystem. <!-- PR description--> Prev: https://github.com/alcionai/corso/pull/3821 Next: https://github.com/alcionai/corso/pull/3824 --- #### Does this PR need a docs update or release note? - [x] ✅ Yes, it's included - [ ] 🕐 Yes, but in a later PR - [ ] ⛔ No #### Type of change <!--- Please check the type of change your PR introduces: ---> - [x] 🌻 Feature - [ ] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Supportability/Tests - [ ] 💻 CI/Deployment - [ ] 🧹 Tech Debt/Cleanup #### Issue(s) <!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. --> * https://github.com/alcionai/corso/pull/3797 * https://github.com/alcionai/corso/issues/3670 #### Test Plan <!-- How will this be tested prior to merging.--> - [ ] 💪 Manual - [x] ⚡ Unit test - [ ] 💚 E2E
68 lines
2.1 KiB
Go
68 lines
2.1 KiB
Go
package testdata
|
|
|
|
import "strings"
|
|
|
|
func FlgInputs(in []string) string { return strings.Join(in, ",") }
|
|
|
|
var (
|
|
BackupInput = "backup-id"
|
|
|
|
UsersInput = []string{"users1", "users2"}
|
|
SiteIDInput = []string{"siteID1", "siteID2"}
|
|
WebURLInput = []string{"webURL1", "webURL2"}
|
|
|
|
ContactInput = []string{"contact1", "contact2"}
|
|
ContactFldInput = []string{"contactFld1", "contactFld2"}
|
|
ContactNameInput = "contactName"
|
|
|
|
EmailInput = []string{"mail1", "mail2"}
|
|
EmailFldInput = []string{"mailFld1", "mailFld2"}
|
|
EmailReceivedAfterInput = "mailReceivedAfter"
|
|
EmailReceivedBeforeInput = "mailReceivedBefore"
|
|
EmailSenderInput = "mailSender"
|
|
EmailSubjectInput = "mailSubject"
|
|
|
|
EventInput = []string{"event1", "event2"}
|
|
EventCalInput = []string{"eventCal1", "eventCal2"}
|
|
EventOrganizerInput = "eventOrganizer"
|
|
EventRecursInput = "eventRecurs"
|
|
EventStartsAfterInput = "eventStartsAfter"
|
|
EventStartsBeforeInput = "eventStartsBefore"
|
|
EventSubjectInput = "eventSubject"
|
|
|
|
LibraryInput = "library"
|
|
FileNameInput = []string{"fileName1", "fileName2"}
|
|
FolderPathInput = []string{"folderPath1", "folderPath2"}
|
|
FileCreatedAfterInput = "fileCreatedAfter"
|
|
FileCreatedBeforeInput = "fileCreatedBefore"
|
|
FileModifiedAfterInput = "fileModifiedAfter"
|
|
FileModifiedBeforeInput = "fileModifiedBefore"
|
|
|
|
ListFolderInput = []string{"listFolder1", "listFolder2"}
|
|
ListItemInput = []string{"listItem1", "listItem2"}
|
|
|
|
PageFolderInput = []string{"pageFolder1", "pageFolder2"}
|
|
PageInput = []string{"page1", "page2"}
|
|
|
|
Collisions = "collisions"
|
|
Destination = "destination"
|
|
ToResource = "toResource"
|
|
RestorePermissions = true
|
|
|
|
DeltaPageSize = "deltaPageSize"
|
|
|
|
Archive = true
|
|
|
|
AzureClientID = "testAzureClientId"
|
|
AzureTenantID = "testAzureTenantId"
|
|
AzureClientSecret = "testAzureClientSecret"
|
|
|
|
AWSAccessKeyID = "testAWSAccessKeyID"
|
|
AWSSecretAccessKey = "testAWSSecretAccessKey"
|
|
AWSSessionToken = "testAWSSessionToken"
|
|
|
|
CorsoPassphrase = "testCorsoPassphrase"
|
|
|
|
RestoreDestination = "test-restore-destination"
|
|
)
|