9#ifndef LLVM_CAS_BUILTINUNIFIEDCASDATABASES_H
10#define LLVM_CAS_BUILTINUNIFIEDCASDATABASES_H
21Expected<std::pair<std::unique_ptr<ObjectStore>, std::unique_ptr<ActionCache>>>
54 StringRef Path,
bool CheckHash,
bool AllowRecovery,
bool ForceValidation,
55 std::optional<StringRef> LLVMCasBinaryPath);
Tagged union holding either a T or a Error.
StringRef - Represent a constant reference to a string, i.e.
A cache from a key (that describes an action) to the result of performing that action.
Content-addressable storage for objects.
Expected< std::pair< std::unique_ptr< ObjectStore >, std::unique_ptr< ActionCache > > > createOnDiskUnifiedCASDatabases(StringRef Path)
Create on-disk ObjectStore and ActionCache instances based on ondisk::UnifiedOnDiskCache,...
ValidationResult
Represents the result of validating the contents using validateOnDiskUnifiedCASDatabasesIfNeeded.
@ Valid
The data is already valid.
@ Recovered
The data was invalid, but was recovered.
@ Skipped
Validation was skipped, as it was not needed.
Expected< ValidationResult > validateOnDiskUnifiedCASDatabasesIfNeeded(StringRef Path, bool CheckHash, bool AllowRecovery, bool ForceValidation, std::optional< StringRef > LLVMCasBinaryPath)
Validate the data in Path, if needed to ensure correctness.