Apache OpenDALâ„¢ C++ Binding
The C++ binding for Apache OpenDALâ„¢
Loading...
Searching...
No Matches
include
data_structure.hpp
Go to the documentation of this file.
1
/*
2
* Licensed to the Apache Software Foundation (ASF) under one
3
* or more contributor license agreements. See the NOTICE file
4
* distributed with this work for additional information
5
* regarding copyright ownership. The ASF licenses this file
6
* to you under the Apache License, Version 2.0 (the
7
* "License"); you may not use this file except in compliance
8
* with the License. You may obtain a copy of the License at
9
*
10
* http://www.apache.org/licenses/LICENSE-2.0
11
*
12
* Unless required by applicable law or agreed to in writing,
13
* software distributed under the License is distributed on an
14
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
* KIND, either express or implied. See the License for the
16
* specific language governing permissions and limitations
17
* under the License.
18
*/
19
20
#pragma once
21
22
#include <chrono>
23
#include <cstdint>
24
#include <optional>
25
#include <string>
26
27
namespace
opendal
{
28
33
enum class
EntryMode
:
int
{
34
FILE
= 1,
35
DIR
= 2,
36
UNKNOWN
= 0,
37
};
38
43
class
Metadata
{
44
public
:
45
EntryMode
type
;
46
std::uint64_t
content_length
;
47
std::optional<std::string>
cache_control
;
48
std::optional<std::string>
content_disposition
;
49
std::optional<std::string>
content_md5
;
50
std::optional<std::string>
content_type
;
51
std::optional<std::string>
etag
;
52
std::optional<std::chrono::system_clock::time_point>
last_modified
;
53
};
54
59
class
Entry
{
60
public
:
61
std::string
path
;
62
};
63
64
}
// namespace opendal
opendal::Entry
The entry of a file or directory.
Definition
data_structure.hpp:59
opendal::Entry::path
std::string path
Definition
data_structure.hpp:61
opendal::Metadata
The metadata of a file or directory.
Definition
data_structure.hpp:43
opendal::Metadata::content_disposition
std::optional< std::string > content_disposition
Definition
data_structure.hpp:48
opendal::Metadata::type
EntryMode type
Definition
data_structure.hpp:45
opendal::Metadata::last_modified
std::optional< std::chrono::system_clock::time_point > last_modified
Definition
data_structure.hpp:52
opendal::Metadata::etag
std::optional< std::string > etag
Definition
data_structure.hpp:51
opendal::Metadata::cache_control
std::optional< std::string > cache_control
Definition
data_structure.hpp:47
opendal::Metadata::content_type
std::optional< std::string > content_type
Definition
data_structure.hpp:50
opendal::Metadata::content_length
std::uint64_t content_length
Definition
data_structure.hpp:46
opendal::Metadata::content_md5
std::optional< std::string > content_md5
Definition
data_structure.hpp:49
opendal
Definition
data_structure.hpp:27
opendal::EntryMode
EntryMode
The mode of the entry.
Definition
data_structure.hpp:33
opendal::EntryMode::UNKNOWN
@ UNKNOWN
opendal::EntryMode::FILE
@ FILE
opendal::EntryMode::DIR
@ DIR
Generated by
1.9.8