|
FlatImage
A configurable Linux containerization system
|
Manages filesystem layers in FlatImage. More...
#include <algorithm>#include <filesystem>#include <regex>#include <unistd.h>#include <iostream>#include <format>#include "../../lib/subprocess.hpp"#include "../../lib/env.hpp"#include "../../std/expected.hpp"#include "../../filesystems/layers.hpp"Go to the source code of this file.
Namespaces | |
| namespace | ns_layers |
| Filesystem layer management command implementation. | |
Enumerations | |
| enum class | ns_layers::CommitMode { BINARY , LAYER , FILE } |
| Commit changes into a novel layer (binary/layer/file modes) More... | |
Functions | |
| Value< void > | ns_layers::create (fs::path const &path_dir_src, fs::path const &path_file_dst, fs::path const &path_file_list, uint64_t compression_level) |
| Creates a layer (filesystem) from a source directory. | |
| Value< void > | ns_layers::add (fs::path const &path_file_binary, fs::path const &path_file_layer) |
| Includes a filesystem in the target FlatImage. | |
| Value< uint64_t > | ns_layers::find_next_layer_number (fs::path const &path_dir_layers) |
| Finds the next available layer number in the layers directory. | |
| Value< void > | ns_layers::commit (fs::path const &path_file_binary, fs::path const &path_dir_src, fs::path const &path_file_layer_tmp, fs::path const &path_file_list_tmp, uint32_t layer_compression_level, CommitMode mode, std::optional< fs::path > const &path_dst=std::nullopt) |
| void | ns_layers::list (ns_filesystems::ns_layers::Layers const &layers) |
| Lists all layers in the format index:offset:size:path. | |
Manages filesystem layers in FlatImage.
Definition in file layers.hpp.