mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-24 14:56:15 +02:00
0746951be1
* Finish converting existing comments for internal API docs 99% of this was just reformatting existing comments. Only two exceptions: - Expanded upon `BuildResult::status` compat note - Split up file-level `symbol-table.hh` doc comments to get per-definition docs Also fixed a few whitespace goofs, turning leading tabs to spaces and removing trailing spaces. Picking up from #8133 * Fix two things from comments * Use triple-backtick not indent for `dumpPath` * Convert GNU-style `\`..'` quotes to markdown style in API docs This will render correctly.
26 lines
590 B
C++
26 lines
590 B
C++
#pragma once
|
|
///@file
|
|
|
|
#include "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.
|
|
*/
|
|
std::optional<std::string> getBuildLog(const StorePath & path);
|
|
|
|
virtual std::optional<std::string> getBuildLogExact(const StorePath & path) = 0;
|
|
|
|
virtual void addBuildLog(const StorePath & path, std::string_view log) = 0;
|
|
|
|
static LogStore & require(Store & store);
|
|
};
|
|
|
|
}
|