Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
local-binary-cache-store.hh
Go to the documentation of this file.
1
#pragma once
3
4
#include "
nix/store/binary-cache-store.hh
"
5
6
namespace
nix {
7
8
struct
LocalBinaryCacheStoreConfig : std::enable_shared_from_this<LocalBinaryCacheStoreConfig>,
9
virtual
Store::Config,
10
BinaryCacheStoreConfig
11
{
12
private
:
13
void
anchor()
override
;
14
15
public
:
16
LocalBinaryCacheStoreConfig(
const
Params & params)
17
: StoreConfig(params,
FilePathType::Unix
)
18
, BinaryCacheStoreConfig(params)
19
{
20
}
21
26
LocalBinaryCacheStoreConfig(
const
std::filesystem::path & binaryCacheDir,
const
Params & params);
27
28
std::filesystem::path binaryCacheDir;
29
30
static
const
std::string name()
31
{
32
return
"Local Binary Cache Store"
;
33
}
34
35
static
StringSet
uriSchemes();
36
37
static
std::string doc();
38
39
ref<Store>
openStore
()
const override
;
40
41
StoreReference
getReference
()
const override
;
42
};
43
44
}
// namespace nix
binary-cache-store.hh
nix::ref
Definition
ref.hh:58
nix::LocalBinaryCacheStoreConfig::getReference
StoreReference getReference() const override
Definition
local-binary-cache-store.cc:43
nix::LocalBinaryCacheStoreConfig::openStore
ref< Store > openStore() const override
Definition
local-binary-cache-store.cc:151
nix::StoreConfigBase::FilePathType::Unix
@ Unix
Definition
store-api.hh:131
nix::StringSet
std::set< std::string, std::less<> > StringSet
Definition
types.hh:45
libstore
include
nix
store
local-binary-cache-store.hh
Generated by
1.18.0