Flox Package Database 1
CRUD Operations on Nix Package Metadata
Loading...
Searching...
No Matches
Classes | Namespaces | Concepts | Functions
manifest-raw.hh File Reference

An abstract description of an environment in its unresolved state. This representation is intended for serialization and deserialization. For the real representation, see flox/resolver/manifest.hh. More...

#include <algorithm>
#include <optional>
#include <string>
#include <string_view>
#include <unordered_map>
#include <utility>
#include <vector>
#include <nlohmann/json.hpp>
#include "compat/concepts.hh"
#include "flox/core/exceptions.hh"
#include "flox/core/types.hh"
#include "flox/pkgdb/pkg-query.hh"
#include "flox/registry.hh"
#include "flox/resolver/descriptor.hh"

Go to the source code of this file.

Classes

struct  flox::resolver::Options
 A set of options that apply to an entire environment. More...
 
struct  flox::resolver::Options::Allows
 
struct  flox::resolver::Options::Semver
 
struct  flox::resolver::GlobalManifestRaw
 A global manifest containing only registry and options fields in its raw form. More...
 
struct  flox::resolver::EnvBaseRaw
 Declares a base environment to extend. More...
 
struct  flox::resolver::HookRaw
 Declares a hook to be run at environment activation. More...
 
struct  flox::resolver::ManifestRaw
 A raw description of an environment to be read from a file. More...
 
struct  flox::resolver::GlobalManifestRawGA
 A global manifest containing only registry and options fields in its raw form. This form is limited to only the options field ( dropping registry ) for use with flox's GA release. More...
 
struct  flox::resolver::ManifestRawGA
 A raw description of an environment to be read from a file. This form drops the registry field for use with flox's GA release. More...
 

Namespaces

namespace  flox
 Interfaces for use by flox.
 

Concepts

concept  flox::resolver::manifest_raw_type
 Restrict types to those derived from flox::resolver::GlobalManifestRaw or flox::resolver::GlobalManifestRawGA.
 

Functions

void flox::resolver::from_json (const nlohmann::json &jfrom, Options &opts)
 Convert a JSON object to a flox::resolver::Options.
 
void flox::resolver::to_json (nlohmann::json &jto, const Options &opts)
 Convert a flox::resolver::Options to a JSON Object.
 
void flox::resolver::from_json (const nlohmann::json &jfrom, GlobalManifestRaw &manifest)
 Convert a JSON object to a flox::resolver::GlobalManifestRaw.
 
void flox::resolver::to_json (nlohmann::json &jto, const GlobalManifestRaw &manifest)
 Convert a flox::resolver::GlobalManifestRaw to a JSON object.
 
void flox::resolver::from_json (const nlohmann::json &jfrom, ManifestRaw &manifest)
 Convert a JSON object to a flox::resolver::ManifestRaw.
 
void flox::resolver::to_json (nlohmann::json &jto, const ManifestRaw &manifest)
 Convert a flox::resolver::ManifestRaw to a JSON object.
 
void flox::resolver::from_json (const nlohmann::json &jfrom, GlobalManifestRawGA &manifest)
 Convert a JSON object to a flox::resolver::GlobalManifestRawGA.
 
void flox::resolver::to_json (nlohmann::json &jto, const GlobalManifestRawGA &manifest)
 Convert a flox::resolver::GlobalManifestRawGA to a JSON object.
 
void flox::resolver::from_json (const nlohmann::json &jfrom, ManifestRawGA &manifest)
 Convert a JSON object to a flox::resolver::ManifestRawGA.
 
void flox::resolver::to_json (nlohmann::json &jto, const ManifestRawGA &manifest)
 Convert a flox::resolver::ManifestRawGA to a JSON object.
 

Detailed Description

An abstract description of an environment in its unresolved state. This representation is intended for serialization and deserialization. For the real representation, see flox/resolver/manifest.hh.