aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Disks/ObjectStorages/S3/S3Capabilities.h
blob: 622558f5d233430fbaa39bb31b2dcbca25da2cc0 (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
#pragma once

#include <string>
#include <Poco/Util/AbstractConfiguration.h>

namespace DB
{

/// Supported/unsupported features by different S3 implementations
/// Can be useful only for almost compatible with AWS S3 versions.
struct S3Capabilities
{
    /// Google S3 implementation doesn't support batch delete
    /// TODO: possibly we have to use Google SDK https://github.com/googleapis/google-cloud-cpp/tree/main/google/cloud/storage
    /// because looks like it misses some features:
    /// 1) batch delete (DeleteObjects)
    /// 2) upload part copy (UploadPartCopy)
    bool support_batch_delete{true};

    /// Y.Cloud S3 implementation support proxy for connection
    bool support_proxy{false};
};

S3Capabilities getCapabilitiesFromConfig(const Poco::Util::AbstractConfiguration & config, const std::string & config_prefix);

}