omit runc connector from darwin build

This commit is contained in:
Bradley Cicenas
2017-06-14 13:11:40 +00:00
parent e59a360b60
commit 617b1b2863
9 changed files with 41 additions and 29 deletions

View File

@@ -8,11 +8,6 @@ import (
ui "github.com/gizak/termui"
)
var enabledConnectors = map[string]func() connector.Connector{
"docker": connector.NewDocker,
"runc": connector.NewRunc,
}
type GridCursor struct {
selectedID string // id of currently selected container
filtered container.Containers
@@ -20,12 +15,6 @@ type GridCursor struct {
isScrolling bool // toggled when actively scrolling
}
func NewGridCursor(connectorName string) *GridCursor {
return &GridCursor{
cSource: enabledConnectors[connectorName](),
}
}
func (gc *GridCursor) Len() int { return len(gc.filtered) }
func (gc *GridCursor) Selected() *container.Container {