1
0
mirror of https://github.com/containers/youki synced 2024-11-23 01:11:58 +01:00
youki/crates
Eric Fang 6162618e7a
Refactor the libcgroups interface (#2168)
* fix notify_listener

- fix the name to notify listener
- fix the structure to be clone-able

Signed-off-by: yihuaf <yihuaf@unkies.org>

* changed the libcgroup creation interface

Changed the libcgroup creation interface to use config struct rather
than variables. The creation will also own/consume the config struct.
In this way, we don't have to create the cgroup manager upfront.
Instead, we can delay the creation of cgroup manager in the process when
it is needed.

Signed-off-by: yihuaf <yihuaf@unkies.org>

* Add a notify listener test

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix clippy

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix spellcheck

Signed-off-by: yihuaf <yihuaf@unkies.org>

---------

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-07-19 22:09:43 +09:00
..
libcgroups Refactor the libcgroups interface (#2168) 2023-07-19 22:09:43 +09:00
libcontainer Refactor the libcgroups interface (#2168) 2023-07-19 22:09:43 +09:00
liboci-cli Liboci additional flags and subcommands, as required by ociplex (#2149) 2023-07-13 14:17:01 -07:00
youki Refactor the libcgroups interface (#2168) 2023-07-19 22:09:43 +09:00
.gitignore Add makefiles to crates and rust-integration-test 2022-01-31 15:08:34 +05:30