Files
lix/lix/libstore/log-store.hh
T
eldritch horrors acd7916af4 libstore: asyncify LogStore::addBuildLog
Change-Id: Idfbeecc9ad8ecba53eea25cbbee65bf85a550e79
2025-02-24 15:09:02 +00:00

27 lines
666 B
C++

#pragma once
///@file
#include "lix/libstore/store-api.hh"
namespace nix {
struct LogStore : public virtual Store
{
inline static std::string operationName = "Build log storage and retrieval";
/**
* Return the build log of the specified store path, if available,
* or null otherwise.
*/
kj::Promise<Result<std::optional<std::string>>> getBuildLog(const StorePath & path);
virtual kj::Promise<Result<std::optional<std::string>>> getBuildLogExact(const StorePath & path) = 0;
virtual kj::Promise<Result<void>> addBuildLog(const StorePath & path, std::string_view log) = 0;
static LogStore & require(Store & store);
};
}