Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
gc-store.hh File Reference
#include "nix/store/store-api.hh"
#include <boost/unordered/unordered_flat_map.hpp>
#include <boost/unordered/unordered_flat_set.hpp>

Go to the source code of this file.

Classes

struct  nix::GCOptions
struct  nix::GCOptions::WholeStore
struct  nix::GCOptions::SpecificPaths
struct  nix::GCResults
struct  nix::GcStore

Typedefs

typedef boost::unordered_flat_map< StorePath, boost::unordered_flat_set< std::string, StringViewHash, std::equal_to<> >, std::hash< StorePath > > nix::Roots

Enumerations

enum class  nix::GCAction { gcReturnLive , gcReturnDead , gcDeleteDead , gcDeleteSpecific }

Enumeration Type Documentation

◆ GCAction

enum class nix::GCAction
strong

Garbage collector operation:

  • gcReturnLive: return the set of paths reachable from (i.e. in the closure of) the roots.
  • gcReturnDead: return the set of paths not reachable from the roots.
  • gcDeleteDead: actually delete the latter set.
  • gcDeleteSpecific: delete the paths listed in pathsToDelete, insofar as they are not reachable.