2022-03-08 18:20:39 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "store-api.hh"
|
|
|
|
|
|
|
|
|
|
|
|
namespace nix {
|
|
|
|
|
|
|
|
struct LogStore : public virtual Store
|
|
|
|
{
|
2022-03-09 15:27:48 +00:00
|
|
|
inline static std::string operationName = "Build log storage and retrieval";
|
|
|
|
|
2022-03-08 18:20:39 +00:00
|
|
|
/* Return the build log of the specified store path, if available,
|
|
|
|
or null otherwise. */
|
|
|
|
virtual std::optional<std::string> getBuildLog(const StorePath & path) = 0;
|
|
|
|
|
|
|
|
virtual void addBuildLog(const StorePath & path, std::string_view log) = 0;
|
|
|
|
|
|
|
|
static LogStore & require(Store & store);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|