Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
log-store.hh
Go to the documentation of this file.
1#pragma once
3
5
6
7namespace nix {
8
9struct LogStore : public virtual Store
10{
11 inline static std::string operationName = "Build log storage and retrieval";
12
17 kj::Promise<Result<std::optional<std::string>>> getBuildLog(const StorePath & path);
18
19 virtual kj::Promise<Result<std::optional<std::string>>> getBuildLogExact(const StorePath & path) = 0;
20
21 virtual kj::Promise<Result<void>> addBuildLog(const StorePath & path, std::string_view log) = 0;
22
23 static LogStore & require(Store & store);
24};
25
26}
Definition path.hh:21
Definition log-store.hh:10
kj::Promise< Result< std::optional< std::string > > > getBuildLog(const StorePath &path)
Definition log-store.cc:5