Skip to content
Open
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
6d4f600
Inject UOTM into methods
gapra-msft Aug 27, 2025
0d1228d
Refactored initial code of resume
gapra-msft Aug 27, 2025
5ba554e
root changes
gapra-msft Aug 27, 2025
3049e9e
Fix UT
gapra-msft Aug 29, 2025
52bea7b
Merge branch 'gapra/injectUOTM' into gapra/resumeInit2
gapra-msft Sep 2, 2025
c0c2822
LCM refactor
gapra-msft Sep 2, 2025
45e9681
add method name
gapra-msft Sep 2, 2025
87a9b52
Fix e2e test issue
gapra-msft Sep 2, 2025
bb095b0
remove error handling - sometimes it can be not present
gapra-msft Sep 3, 2025
c8d149e
change behavior of cpkinfo
gapra-msft Sep 3, 2025
c1371d2
Added supoprt for jobs resume progress tracking in library
gapra-msft Sep 3, 2025
bc96906
Moved traverser code to a new package
gapra-msft Sep 3, 2025
799ef32
Export some types
gapra-msft Sep 3, 2025
ce78780
move copy util test
gapra-msft Sep 3, 2025
9f9b142
Remove azcopy as a dependency on traverser
gapra-msft Sep 3, 2025
cdb0354
try and fix test
gapra-msft Sep 3, 2025
e51f126
make account traversers use interface
gapra-msft Sep 3, 2025
614ccc7
undo not needed change
gapra-msft Sep 3, 2025
b3c108a
Merge branch 'gapra/moveTraverser' into gapra/azcopyDependencies
gapra-msft Sep 5, 2025
d9e535b
removed cred types from cooked sync args
gapra-msft Sep 5, 2025
4dea252
fix UT
gapra-msft Sep 5, 2025
38f2af2
Merge branch 'gapra/azcopyDependencies' into gapra/syncCleanup
gapra-msft Sep 5, 2025
f1e9a26
fix incorrect cred info check for destReauthTok
gapra-msft Sep 8, 2025
c41eace
remove redundant code
gapra-msft Sep 8, 2025
1347da7
Moved client creation out of traverser init
gapra-msft Sep 8, 2025
ab61190
Moved all filter logic
gapra-msft Sep 9, 2025
e00fd6c
some more cleanup
gapra-msft Sep 10, 2025
628e056
Fix casing of method for non windows
gapra-msft Sep 10, 2025
1fc66f8
Merge branch 'gapra/moveTraverser' into gapra/azcopyDependencies
gapra-msft Sep 10, 2025
632fb35
Merge branch 'gapra/azcopyDependencies' into gapra/syncCleanup
gapra-msft Sep 10, 2025
3b01f17
Clean up client creation logic
gapra-msft Sep 11, 2025
f6713dc
move client creation to arg processing
gapra-msft Sep 11, 2025
887a26c
dryrun processing is separated from main code
gapra-msft Sep 11, 2025
7118d16
refactor dryrun processing
gapra-msft Sep 11, 2025
69cfa68
skip test
gapra-msft Sep 11, 2025
ce0d360
fix bug with dryrun method
gapra-msft Sep 11, 2025
53c1f4a
Merge branch 'gapra/libraryPhase2' into gapra/syncCleanup
gapra-msft Sep 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion azcopy/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ import (
"github.com/Azure/azure-storage-azcopy/v10/ste"
)

const (
oauthLoginSessionCacheKeyName = "AzCopyOAuthTokenCache"
oauthLoginSessionCacheServiceName = "AzCopyV10"
oauthLoginSessionCacheAccountName = "AzCopyOAuthTokenCache"
)

// It's not pretty that this one is read directly by credential util.
// But doing otherwise required us passing it around in many places, even though really
// it can be thought of as an "ambient" property. That's the (weak?) justification for implementing
// it as a global
var TrustedSuffixes string

type Client struct {
CurrentJobID common.JobID // TODO (gapra): In future this should only be set when there is a current job running. On complete, this should be cleared. It can also behave as something we can check to see if a current job is running
logLevel common.LogLevel
Expand All @@ -37,10 +49,12 @@ type Client struct {
}

type ClientOptions struct {
CapMbps float64
CapMbps float64
TrustedSuffixes string
}

func NewClient(opts ClientOptions) (Client, error) {
TrustedSuffixes = opts.TrustedSuffixes
c := Client{
logLevel: common.ELogLevel.Info(), // Default: Info
}
Expand Down
Loading