aboutsummaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/http/context.h
blob: 3926373e1744cf965694548014d002906a19c8c3 (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
#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();
};

bool operator==(const TClientContext& lhs, const TClientContext& rhs);
bool operator!=(const TClientContext& lhs, const TClientContext& rhs);

////////////////////////////////////////////////////////////////////////////////

} // namespace NYT