Remove LinuxContainer interface

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2017-05-11 15:26:26 -07:00
parent 466e14aa71
commit a11de50127
2 changed files with 0 additions and 11 deletions

View File

@ -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
}

View File

@ -28,10 +28,6 @@ type Container interface {
CloseStdin(context.Context, uint32) error
}
type LinuxContainer interface {
Container
}
type ExecOpts struct {
Spec []byte
IO IO