-
Notifications
You must be signed in to change notification settings - Fork 250
Cleanup in preparation for sync refactor #3217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: gapra/libraryPhase2
Are you sure you want to change the base?
Conversation
| return srcServiceClient, srcCredType, nil | ||
| } | ||
|
|
||
| func GetDestinationServiceClient(ctx context.Context, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
- Can this be consolidated into one function to reduce code dupe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creating an item for this. There are some updates I need to make with the method args so I'll clean it up at once after the core of the migration is done
| @@ -0,0 +1,144 @@ | |||
| package azcopy | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we need the microsoft licensing header?
| srcReauthTok = (*common.ScopedAuthenticator)(common.NewScopedCredential(at, common.ECredentialType.OAuthToken())) | ||
| } | ||
|
|
||
| options := traverser.CreateClientOptions(common.AzcopyCurrentJobLogger, nil, srcReauthTok) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a condition in the client creation for if we're not using OAuth tokens?
| @@ -0,0 +1,122 @@ | |||
| package cmd | |||
|
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing licensing header
| @@ -0,0 +1,122 @@ | |||
| package cmd | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing Microsoft licensing header
|
|
||
| // Create Destination Client. | ||
| var azureFileSpecificOptions any | ||
| if fromTo.To() == common.ELocation.File() || fromTo.To() == common.ELocation.FileNFS() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fromTo.To().IsFile()
| if fromTo.To() == common.ELocation.File() || fromTo.To() == common.ELocation.FileNFS() { | |
| if fromTo.To() == common.ELocation.File() || fromTo.To() == common.ELocation.FileNFS() { |
|
|
||
| // Create Source Client. | ||
| var azureFileSpecificOptions any | ||
| if loc == common.ELocation.File() || loc == common.ELocation.FileNFS() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loc.IsFile()
| if loc == common.ELocation.File() || loc == common.ELocation.FileNFS() { | |
| if loc == common.ELocation.File() || loc == common.ELocation.FileNFS() { |
| preserveOwner bool | ||
| preserveSMBInfo bool | ||
| preservePOSIXProperties bool | ||
| followSymlinks bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we remove it? we will need this for NFS
| cooked.destination = common.ResourceString{Value: common.ToExtendedPath(common.CleanLocalPath(raw.dst))} | ||
| } | ||
|
|
||
| if err = cooked.symlinkHandling.Determine(raw.followSymlinks, raw.preserveSymlinks); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
|
Left few comments. |
Description
Feature / Bug Fix: (Brief description of the feature or issue being addressed)
Related Links:
Issues
Team thread
Documents
[Email Subject]
Type of Change
How Has This Been Tested?
Thank you for your contribution to AzCopy!