blob: 9c730f1c3a90d7c583b60bc8f435650ef66a93bc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#pragma once
#include "fwd.h"
#include <yt/cpp/mapreduce/interface/common.h>
#include <yt/cpp/mapreduce/interface/config.h>
#include <yt/cpp/mapreduce/interface/public.h>
namespace NYT {
///////////////////////////////////////////////////////////////////////////////
struct TClientContext
{
TString ServerName;
TString Token;
TMaybe<TString> ImpersonationUser;
NAuth::IServiceTicketAuthPtrWrapperPtr ServiceTicketAuth;
NHttpClient::IHttpClientPtr HttpClient;
bool TvmOnly = false;
bool UseTLS = false;
TConfigPtr Config = TConfig::Get();
TMaybe<TString> ProxyAddress;
};
bool operator==(const TClientContext& lhs, const TClientContext& rhs);
bool operator!=(const TClientContext& lhs, const TClientContext& rhs);
////////////////////////////////////////////////////////////////////////////////
} // namespace NYT
|