Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
input-cache.hh
1
#pragma once
2
3
#include "
nix/fetchers/fetchers.hh
"
4
5
namespace
nix::fetchers {
6
7
enum class
UseRegistries : int;
8
struct
Settings
;
9
10
struct
InputCache
11
{
12
struct
CachedResult
13
{
14
ref<SourceAccessor>
accessor;
15
Input
resolvedInput;
16
Input
lockedInput;
17
Attrs
extraAttrs;
18
};
19
20
CachedResult
21
getAccessor(
const
Settings
& settings,
Store
& store,
const
Input
& originalInput, UseRegistries useRegistries);
22
23
struct
CachedInput
24
{
25
Input
lockedInput;
26
ref<SourceAccessor>
accessor;
27
Attrs
extraAttrs;
28
};
29
30
virtual
std::optional<CachedInput> lookup(
const
Input
& originalInput)
const
= 0;
31
32
virtual
void
upsert(
Input
key,
CachedInput
cachedInput) = 0;
33
34
virtual
void
clear() = 0;
35
36
static
ref<InputCache>
create();
37
38
virtual
~InputCache
();
39
};
40
41
}
// namespace nix::fetchers
nix::fetchers::Attrs
std::map< std::string, Attr > Attrs
Definition
attrs.hh:68
nix::Store
Definition
store-api.hh:397
nix::ref
Definition
ref.hh:58
fetchers.hh
nix::fetchers::InputCache::CachedInput
Definition
input-cache.hh:24
nix::fetchers::InputCache::CachedResult
Definition
input-cache.hh:13
nix::fetchers::InputCache
Definition
input-cache.hh:11
nix::fetchers::Input
Definition
fetchers.hh:36
nix::fetchers::Settings
Definition
fetch-settings.hh:27
libfetchers
include
nix
fetchers
input-cache.hh
Generated by
1.18.0