Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
store-open.hh File Reference

Go to the source code of this file.

Functions

ref< StoreConfig > nix::resolveStoreConfig (StoreReference &&storeURI)
ref< Store > nix::openStore (StoreReference &&storeURI)
ref< Store > nix::openStore (const std::string &uri, const StoreReference::Params &extraParams=StoreReference::Params())
ref< Store > nix::openStore ()
std::list< ref< Store > > nix::getDefaultSubstituters ()

Detailed Description

For opening a store described by an StoreReference, which is an "untyped" notion which needs to be decoded against a collection of specific implementations.

For consumers of the store registration machinery defined in store-registration.hh. Not needed by store implementation definitions, or usages of a given Store which will be passed in.

Function Documentation

◆ getDefaultSubstituters()

std::list< ref< Store > > nix::getDefaultSubstituters ( )
Returns
the default substituter stores, defined by the ‘substituters’ option and various legacy options.

◆ openStore() [1/3]

ref< Store > nix::openStore ( )

Short-hand which opens the default store, according to global settings

◆ openStore() [2/3]

ref< Store > nix::openStore ( const std::string & uri,
const StoreReference::Params & extraParams = StoreReference::Params() )

Opens the store at uri, where uri is in the format expected by StoreReference::parse

◆ openStore() [3/3]

ref< Store > nix::openStore ( StoreReference && storeURI)
Returns
a Store object to access the Nix store denoted by ‘uri’ (slight misnomer...).

◆ resolveStoreConfig()

ref< StoreConfig > nix::resolveStoreConfig ( StoreReference && storeURI)
Returns
The store config denoted by storeURI (slight misnomer...).