Fastly Compute C++ SDK
Loading...
Searching...
No Matches
config_store.h
Go to the documentation of this file.
1#ifndef FASTLY_CONFIG_STORE_H
2#define FASTLY_CONFIG_STORE_H
3
4#include <fastly/error.h>
5#include <fastly/sdk-sys.h>
6#include <optional>
7#include <string>
8#include <string_view>
9
11
13class ConfigStore {
14public:
23 static fastly::expected<ConfigStore> open(std::string_view name);
24
47
56 fastly::expected<bool> contains(std::string_view key);
57
58private:
59 rust::Box<fastly::sys::config_store::ConfigStore> cs;
60 ConfigStore(rust::Box<fastly::sys::config_store::ConfigStore> c)
61 : cs(std::move(c)) {};
62};
63
64} // namespace fastly::config_store
65
66namespace fastly {
68}
69
70#endif
A Compute Config Store.
Definition config_store.h:13
fastly::expected< std::optional< std::string > > get(std::string_view key)
fastly::expected< bool > contains(std::string_view key)
static fastly::expected< ConfigStore > open(std::string_view name)
Definition config_store.h:10
tl::expected< T, FastlyError > expected
Definition error.h:25
Definition backend.h:13