aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/store-api.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r--src/libstore/store-api.hh15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh
index 3758c730f..f9029ade1 100644
--- a/src/libstore/store-api.hh
+++ b/src/libstore/store-api.hh
@@ -109,13 +109,28 @@ struct StoreConfig : public Config
virtual ~StoreConfig() { }
+ /**
+ * The name of this type of store.
+ */
virtual const std::string name() = 0;
+ /**
+ * Documentation for this type of store.
+ */
virtual std::string doc()
{
return "";
}
+ /**
+ * An experimental feature this type store is gated, if it is to be
+ * experimental.
+ */
+ virtual std::optional<ExperimentalFeature> experimentalFeature() const
+ {
+ return std::nullopt;
+ }
+
const PathSetting storeDir_{this, settings.nixStore,
"store",
R"(