This commit is contained in:
Bradley Cicenas 2017-11-22 14:27:38 +00:00
parent 71b4a1de94
commit a826859202
5 changed files with 9 additions and 9 deletions

View File

@ -6,9 +6,9 @@ import (
"sync"
"github.com/bcicen/ctop/connector/collector"
"github.com/bcicen/ctop/connector/manager"
"github.com/bcicen/ctop/container"
api "github.com/fsouza/go-dockerclient"
"github.com/bcicen/ctop/connector/manager"
)
type Docker struct {

View File

@ -1,19 +1,19 @@
package manager
import (
api "github.com/fsouza/go-dockerclient"
"fmt"
api "github.com/fsouza/go-dockerclient"
)
type Docker struct {
id string
client *api.Client
id string
client *api.Client
}
func NewDocker(client *api.Client, id string) *Docker {
return &Docker{
id: id,
client: client,
id: id,
client: client,
}
}

View File

@ -1,6 +1,6 @@
package manager
type Mock struct {}
type Mock struct{}
func NewMock() *Mock {
return &Mock{}

View File

@ -8,10 +8,10 @@ import (
"time"
"github.com/bcicen/ctop/connector/collector"
"github.com/bcicen/ctop/connector/manager"
"github.com/bcicen/ctop/container"
"github.com/jgautheron/codename-generator"
"github.com/nu7hatch/gouuid"
"github.com/bcicen/ctop/connector/manager"
)
type Mock struct {

View File

@ -2,11 +2,11 @@ package container
import (
"github.com/bcicen/ctop/connector/collector"
"github.com/bcicen/ctop/connector/manager"
"github.com/bcicen/ctop/cwidgets"
"github.com/bcicen/ctop/cwidgets/compact"
"github.com/bcicen/ctop/logging"
"github.com/bcicen/ctop/models"
"github.com/bcicen/ctop/connector/manager"
)
var (