Files
yuriy odonnell 257f18b5b6 unsync - Split OpenID config out of FAuthDesc into a separate structure and use auth desc to generate token cache key instead of just server address
* Avoids unnecessary login steps when using different proxy servers that share auth config

[CL 29877767 by yuriy odonnell in ue5-main branch]
2023-11-21 18:25:48 -05:00

43 lines
813 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "UnsyncCommon.h"
#include "UnsyncCore.h"
#include "UnsyncRemote.h"
namespace unsync {
struct FAuthDesc;
struct FCmdSyncOptions
{
FAlgorithmOptions Algorithm;
FPath Source;
FPath Target;
FPath SourceManifestOverride;
FPath ScavengeRoot;
uint32 ScavengeDepth = 5;
uint64 BackgroundTaskMemoryBudget = 2_GB;
std::vector<FPath> Overlays;
FRemoteDesc Remote;
FAuthDesc* AuthDesc = nullptr;
bool bFullDifference = false;
bool bFullSourceScan = false;
bool bCleanup = false;
bool bCheckAvailableSpace = true;
bool bValidateTargetFiles = true; // WARNING: turning this off is intended only for testing/profiling
FSyncFilter* Filter = nullptr;
};
int32 CmdSync(const FCmdSyncOptions& Options);
} // namespace unsync