add runc manager placeholder

This commit is contained in:
Bradley Cicenas 2017-11-22 14:26:01 +00:00
parent 93a2e4b1ca
commit 71b4a1de94
2 changed files with 22 additions and 1 deletions

19
connector/manager/runc.go Normal file
View File

@ -0,0 +1,19 @@
package manager
type Runc struct{}
func NewRunc() *Runc {
return &Runc{}
}
func (rc *Runc) Start() error {
return nil
}
func (rc *Runc) Stop() error {
return nil
}
func (rc *Runc) Remove() error {
return nil
}

View File

@ -11,6 +11,7 @@ import (
"time"
"github.com/bcicen/ctop/connector/collector"
"github.com/bcicen/ctop/connector/manager"
"github.com/bcicen/ctop/container"
"github.com/opencontainers/runc/libcontainer"
"github.com/opencontainers/runc/libcontainer/cgroups/systemd"
@ -175,7 +176,8 @@ func (cm *Runc) MustGet(id string) *container.Container {
collector := collector.NewRunc(libc)
// create container
c = container.New(id, collector)
manager := manager.NewRunc()
c = container.New(id, collector, manager)
name := libc.ID()
// set initial metadata