Remove LinuxContainer interface
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
466e14aa71
commit
a11de50127
@ -45,10 +45,6 @@ type cgroupsMonitor struct {
|
||||
}
|
||||
|
||||
func (m *cgroupsMonitor) Monitor(c plugin.Container) error {
|
||||
// skip non-linux containers
|
||||
if _, ok := c.(plugin.LinuxContainer); !ok {
|
||||
return nil
|
||||
}
|
||||
id := c.Info().ID
|
||||
state, err := c.State(m.context)
|
||||
if err != nil {
|
||||
@ -65,9 +61,6 @@ func (m *cgroupsMonitor) Monitor(c plugin.Container) error {
|
||||
}
|
||||
|
||||
func (m *cgroupsMonitor) Stop(c plugin.Container) error {
|
||||
if _, ok := c.(plugin.LinuxContainer); !ok {
|
||||
return nil
|
||||
}
|
||||
m.collector.Remove(c.Info().ID)
|
||||
return nil
|
||||
}
|
||||
|
@ -28,10 +28,6 @@ type Container interface {
|
||||
CloseStdin(context.Context, uint32) error
|
||||
}
|
||||
|
||||
type LinuxContainer interface {
|
||||
Container
|
||||
}
|
||||
|
||||
type ExecOpts struct {
|
||||
Spec []byte
|
||||
IO IO
|
||||
|
Loading…
Reference in New Issue
Block a user