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" "sync"
"github.com/bcicen/ctop/connector/collector" "github.com/bcicen/ctop/connector/collector"
"github.com/bcicen/ctop/connector/manager"
"github.com/bcicen/ctop/container" "github.com/bcicen/ctop/container"
api "github.com/fsouza/go-dockerclient" api "github.com/fsouza/go-dockerclient"
"github.com/bcicen/ctop/connector/manager"
) )
type Docker struct { type Docker struct {

View File

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

View File

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

View File

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

View File

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