mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-05-17 13:04:23 +00:00
The central function being added here is load() which takes a path to a base config file and uses it to load the base config file itself, find the corresponding drop-in directory (get_dropin_dir_path()), iterate through its contents (update_from_dropins()) and load each drop-in in turn and merge its contents with the base file (update_from_dropin()). Also added is a test of load() which mirrors the corresponding test in the golang runtime (TestLoadDropInConfiguration() in config_test.go). Signed-off-by: Pavel Mores <pmores@redhat.com>
The src/libs directory hosts library crates which may be shared by multiple Kata Containers components
or published to crates.io.
Library Crates
Currently it provides following library crates:
| Library | Description |
|---|---|
| logging | Facilities to setup logging subsystem based on slog. |
| system utilities | Collection of facilities and helpers to access system services. |
| types | Collection of constants and data types shared by multiple Kata Containers components. |
| safe-path | Utilities to safely resolve filesystem paths. |