Nix
2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Toggle main menu visibility
Loading...
Searching...
No Matches
tarball.hh
1
#pragma once
2
3
#include <optional>
4
5
#include "
nix/util/hash.hh
"
6
#include "
nix/store/path.hh
"
7
#include "
nix/util/ref.hh
"
8
#include "
nix/util/types.hh
"
9
#include "
nix/util/url.hh
"
10
11
namespace
nix {
12
class
Store
;
13
struct
SourceAccessor
;
14
}
// namespace nix
15
16
namespace
nix::fetchers {
17
18
struct
Settings
;
19
20
struct
DownloadFileResult
21
{
22
StorePath
storePath;
23
std::string etag;
24
std::string effectiveUrl;
25
std::optional<std::string> immutableUrl;
26
};
27
28
DownloadFileResult
downloadFile(
29
Store
& store,
30
const
Settings
& settings,
31
const
VerbatimURL
& url,
32
const
std::string & name,
33
const
Headers & headers = {});
34
35
struct
DownloadTarballResult
36
{
37
Hash
treeHash;
38
time_t lastModified;
39
std::optional<std::string> immutableUrl;
40
ref<SourceAccessor>
accessor;
41
};
42
47
ref<SourceAccessor>
downloadTarball(
Store
& store,
const
Settings
& settings,
const
std::string & url);
48
49
}
// namespace nix::fetchers
nix::StorePath
Definition
path.hh:33
nix::Store
Definition
store-api.hh:397
nix::ref
Definition
ref.hh:58
path.hh
hash.hh
ref.hh
nix::Hash
Definition
hash.hh:58
nix::SourceAccessor
Definition
source-accessor.hh:50
nix::VerbatimURL
Definition
url.hh:353
nix::fetchers::DownloadFileResult
Definition
tarball.hh:21
nix::fetchers::DownloadTarballResult
Definition
tarball.hh:36
nix::fetchers::Settings
Definition
fetch-settings.hh:27
types.hh
url.hh
libfetchers
include
nix
fetchers
tarball.hh
Generated by
1.18.0