libct: rm BaseContainer and Container interfaces

The only implementation of these is linuxContainer. It does not make
sense to have an interface with a single implementation, and we do not
foresee other types of containers being added to runc.

Remove BaseContainer and Container interfaces, moving their methods
documentation to linuxContainer.

Rename linuxContainer to Container.

Adopt users from using interface to using struct.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2022-02-11 12:07:29 -08:00
parent c4c48896eb
commit 102b8abd26
12 changed files with 128 additions and 194 deletions
+1 -1
View File
@@ -300,7 +300,7 @@ type initProcess struct {
config *initConfig
manager cgroups.Manager
intelRdtManager *intelrdt.Manager
container *linuxContainer
container *Container
fds []string
process *Process
bootstrapData io.Reader